From 3b584767f3a764ebd75eebb24be1425488d75a2e Mon Sep 17 00:00:00 2001 From: Julian Krauser Date: Mon, 6 Jan 2025 10:38:39 +0100 Subject: [PATCH] force exposed prod port to 5000 --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a059687..260193c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -35,12 +35,13 @@ WORKDIR /app RUN mkdir -p /app/export ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser +ENV SERVER_PORT=5000 COPY --from=build /app/src/templates /app/src/templates COPY --from=build /app/dist /app/dist COPY --from=build /app/node_modules /app/node_modules COPY --from=build /app/package.json /app/package.json -EXPOSE 5000 +EXPOSE ${SERVER_PORT} CMD [ "npm", "run", "start" ] \ No newline at end of file