Skip to content

Commit

Permalink
WIP test no env
Browse files Browse the repository at this point in the history
  • Loading branch information
devincowan committed Jan 10, 2024
1 parent 465ea64 commit 6b43e5a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
Expand All @@ -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
Expand Down

0 comments on commit 6b43e5a

Please sign in to comment.