mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-30 10:47:22 +08:00
* split ts files * packages * nomore workspace? * blah * build, exports * declaration * blargh * turrrrbo * fix fontawesome paths * allow file in eslint, fix ts errors * optimise package, update tsconfig * fix ts * update turbo config * eslint split * fix imports * fix types * lock * add turbo task * script * test task * pretty scripts * update prettier ignore * no cache for tests * lint task * turbo * no out * depend on env * fix mono breaking things * odl * fix version dependency of mongodb-memory-server * Revert "fix version dependency of mongodb-memory-server" This reverts commit52ffac47b1. * update vitest-mongodb * release scripts * update ci * update dev script * ignore issues around firebase config * add check ts tasks * import isaxioserror * shared types package * replace tsnodedev with tsx * fix import * shared types * module * backend imports * declaration * node version * test code * assert json * verbatim * type * lodash * ts ver * fix fix fix? * remove assert * remove module and resolution * cleanup * tsconfig * fix frontend * remove unecessary props * more unused * remove skiplib * declaration map, dev script * remove install scripts * fix regex * move shared types to package * dont include shared types * remove path * update scripts * test code * test code * fix backend types * fully fix backend * fix frontend d.ts * add .js to imports * remove module * revert add .js * update tsconfig * use bundler module resolution * almost all frontend types * mooore * date fns * fix backend docker * fix ape keys * fix type * clean rimraf type * fix shared-types in workspace * fix import resolving * fix docker builds * ignore type problems on slim-select until new version is released * turrrrbo * fix npm ci * fix lint task * expose env variables needed by frontend build * fix dependencies * package-lock * backend watch ts and lint * add fe and be build scripts to root * fix dev not building packages * shared-types missing eslint * move shared types back to dev-deps * add packages to labeler * add packages step to ci * typo * filter update * remove concurrently from root * add scripts * abbreviate * rename * yeet * fixed path * test pkg * consistent ordering * rename * Revert "backend imports" This reverts commitd715198829. * fix missing imports, remove last .js * remove test package --------- Co-authored-by: Christian Fehmer <cfe@sexy-developer.com>
29 lines
791 B
Docker
29 lines
791 B
Docker
FROM node:18.20.4-alpine3.19 AS builder
|
|
WORKDIR /app
|
|
|
|
#ENV
|
|
ENV BACKEND_URL=###MONKEYTYPE_BACKENDURL###
|
|
ENV RECAPTCHA_SITE_KEY=###RECAPTCHA_SITE_KEY###
|
|
|
|
#COPY
|
|
COPY package.json package.json
|
|
COPY package-lock.json package-lock.json
|
|
COPY turbo.json turbo.json
|
|
COPY packages packages
|
|
COPY frontend frontend
|
|
|
|
COPY docker/frontend/firebase-config-live.ts frontend/src/ts/constants/firebase-config.ts
|
|
COPY docker/frontend/firebase-config-live.ts frontend/src/ts/constants/firebase-config-live.ts
|
|
|
|
#BUILD
|
|
RUN npm ci
|
|
RUN npm run build
|
|
|
|
# COPY to target
|
|
FROM nginx:mainline-alpine
|
|
COPY --from=builder /app/frontend/dist /usr/share/nginx/html
|
|
COPY docker/frontend/updateConfig.sh /docker-entrypoint.d/updateConfig.sh
|
|
RUN chmod +x /docker-entrypoint.d/updateConfig.sh
|
|
|
|
# entry
|
|
#CMD ["./entryPoint.sh"]
|