Fix 404 page missing on production container build
This commit is contained in:
@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user