Fix 404 page missing on production container build
This commit is contained in:
@ -35,7 +35,7 @@ prod-front-build:
|
|||||||
@cd ../.. && docker build -f ./packages/twenty-docker/prod/twenty-front/Dockerfile --tag twenty-front . && cd -
|
@cd ../.. && docker build -f ./packages/twenty-docker/prod/twenty-front/Dockerfile --tag twenty-front . && cd -
|
||||||
|
|
||||||
prod-front-run:
|
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:
|
prod-server-build:
|
||||||
@cd ../.. && docker build -f ./packages/twenty-docker/prod/twenty-server/Dockerfile --tag twenty-server . && cd -
|
@cd ../.. && docker build -f ./packages/twenty-docker/prod/twenty-server/Dockerfile --tag twenty-server . && cd -
|
||||||
|
|||||||
@ -16,13 +16,12 @@ COPY ./packages/twenty-front /app/packages/twenty-front
|
|||||||
RUN yarn
|
RUN yarn
|
||||||
RUN yarn nx build twenty-front
|
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
|
FROM node:18.16.0-alpine as twenty-front
|
||||||
|
|
||||||
WORKDIR /app/packages/twenty-front
|
WORKDIR /app/packages/twenty-front
|
||||||
|
|
||||||
COPY --from=twenty-front-build /app/packages/twenty-front/build ./build
|
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
|
COPY ./packages/twenty-front/scripts/inject-runtime-env.sh /app/packages/twenty-front/scripts/inject-runtime-env.sh
|
||||||
RUN yarn global add serve
|
RUN yarn global add serve
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user