chore: update prod.Dockerfile to add step for the backend container to not copy .env in

This commit is contained in:
Andrew Bastin
2023-08-25 21:03:00 +05:30
parent c62482e81f
commit dfb281bcf7

View File

@@ -16,6 +16,8 @@ FROM base_builder as backend
WORKDIR /usr/src/app/packages/hoppscotch-backend
RUN pnpm exec prisma generate
RUN pnpm run build
# Remove the env file to avoid backend copying it in and using it
RUN rm "../../.env"
ENV PRODUCTION="true"
ENV PORT=3170
ENV APP_PORT=${PORT}