Fix 404 page missing on production container build

This commit is contained in:
Charles Bochet
2023-12-14 13:12:24 +01:00
parent a10f353a4c
commit fd3b7ccd9a
2 changed files with 2 additions and 3 deletions

View File

@ -16,13 +16,12 @@ COPY ./packages/twenty-front /app/packages/twenty-front
RUN yarn
RUN yarn nx build twenty-front
COPY ./packages/twenty-docker/prod/twenty-front/serve.json ./build
FROM node:18.16.0-alpine as twenty-front
WORKDIR /app/packages/twenty-front
COPY --from=twenty-front-build /app/packages/twenty-front/build ./build
COPY ./packages/twenty-docker/prod/twenty-front/serve.json ./build
COPY ./packages/twenty-front/scripts/inject-runtime-env.sh /app/packages/twenty-front/scripts/inject-runtime-env.sh
RUN yarn global add serve