Fix everything needed for correct build

This commit is contained in:
rubikscraft
2022-08-28 16:31:20 +02:00
parent d0dea59a3a
commit 62a4c91ba7
53 changed files with 490 additions and 152 deletions

View File

@@ -1,4 +1,4 @@
FROM node:18.8
FROM node:18.8-bullseye
# Sorry for the humongous docker container this generates
# Maybe I'll trim it down some day
@@ -8,16 +8,10 @@ ENV PICSUR_PRODUCTION=true
ADD . /picsur
WORKDIR /picsur
RUN yarn install --frozen-lockfile
RUN yarn install --immutable
WORKDIR /picsur/shared
RUN yarn build
WORKDIR /picsur/frontend
RUN yarn build
WORKDIR /picsur/backend
RUN yarn build
CMD ["yarn", "start:prod"]
RUN yarn workspace picsur-shared build
RUN yarn workspace picsur-frontend build
RUN yarn workspace picsur-backend build
CMD /bin/bash -c "yarn workspace picsur-backend start:prod"