Fix production deploy scripts (#294)

* Fix production server deploy

* Fix production server deploy
This commit is contained in:
Charles Bochet
2023-06-14 17:53:21 +02:00
committed by GitHub
parent deee7a0f64
commit d5817608a7
3 changed files with 4 additions and 2 deletions

View File

@ -9,6 +9,6 @@ RUN yarn install --prod
COPY ./docs .
RUN npm run build
RUN yarn install -g serve
RUN yarn global add serve
CMD ["serve", "-s", "./build"]

View File

@ -3,6 +3,8 @@ FROM node:18.16.0-alpine as front
ARG REACT_APP_API_URL
ARG REACT_APP_AUTH_URL
COPY ./packages/ /app/packages
WORKDIR /app/front
COPY ./front .

View File

@ -3,7 +3,7 @@ FROM node:18.16.0-alpine as server
WORKDIR /app/server
COPY ./server/package.json ./
COPY ./server/yarn.lock ./
RUN yarn install --prod
RUN yarn install
COPY ./server .
RUN npx prisma generate