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

@ -35,7 +35,7 @@ prod-front-build:
@cd ../.. && docker build -f ./packages/twenty-docker/prod/twenty-front/Dockerfile --tag twenty-front . && cd -
prod-front-run:
@docker run -d -p 3000:3000 --name twenty-front twenty-front
@docker run -d -p 3001:3000 --name twenty-front twenty-front
prod-server-build:
@cd ../.. && docker build -f ./packages/twenty-docker/prod/twenty-server/Dockerfile --tag twenty-server . && cd -

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