diff --git a/app/frontend/Dockerfile b/app/frontend/Dockerfile index eb60551b..23a13003 100644 --- a/app/frontend/Dockerfile +++ b/app/frontend/Dockerfile @@ -2,9 +2,9 @@ # docker build -f app/frontend/Dockerfile app/ FROM node:20.9.0 as build-stage WORKDIR /tmp -COPY *env* ./ -RUN [ -f ".env" ] || cp env.template .env -RUN grep '^VITE' .env > /.env +# COPY *env* ./ +# RUN [ -f ".env" ] || cp env.template .env +# RUN grep '^VITE' .env > /.env WORKDIR /app ADD frontend . @@ -14,7 +14,7 @@ RUN npm run build FROM nginx:1.24.0 as production-stage RUN mkdir /app COPY --from=build-stage /app/dist /app -COPY --from=build-stage .env .env +# COPY --from=build-stage .env .env COPY --from=build-stage /app/nginx.conf /etc/nginx/nginx.conf # Allow substitution of env vars at runtime