2026-10-14 02:09:05 +03:00
|
|
|
# Build from the repo root: docker build -f apps/backend/Dockerfile .
|
2022-07-09 14:40:56 +03:00
|
|
|
FROM node:lts-buster-slim
|
|
|
|
|
|
|
|
|
|
ENV PORT=6000
|
|
|
|
|
|
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
|
|
2026-10-14 02:09:05 +03:00
|
|
|
# Local packages the backend links to
|
2022-07-09 14:40:56 +03:00
|
|
|
COPY package.json package.json
|
2026-10-14 02:09:05 +03:00
|
|
|
COPY packages packages
|
|
|
|
|
RUN yarn build:packages
|
|
|
|
|
|
|
|
|
|
WORKDIR /usr/src/app/apps/backend
|
|
|
|
|
|
|
|
|
|
COPY apps/backend/package.json package.json
|
|
|
|
|
COPY apps/backend/yarn.lock yarn.lock
|
2022-07-09 14:40:56 +03:00
|
|
|
|
|
|
|
|
RUN yarn
|
|
|
|
|
|
2026-10-14 02:09:05 +03:00
|
|
|
COPY apps/backend .
|
2022-07-09 14:40:56 +03:00
|
|
|
|
|
|
|
|
RUN yarn build
|
|
|
|
|
|
|
|
|
|
EXPOSE ${PORT}
|
|
|
|
|
|
2026-10-14 02:09:05 +03:00
|
|
|
CMD [ "yarn", "start"]
|