Skip to content

Commit

Permalink
fix: binding secrets as ARGS in clients dockerfile (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjibansg authored Feb 16, 2024
1 parent 1ab5915 commit 80f87d1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions client/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
FROM node:18-alpine as builder

ARG VITE_SESSION_SECRET
ENV VITE_SESSION_SECRET=$VITE_SESSION_SECRET

WORKDIR /app
COPY . .

Expand Down
7 changes: 5 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,16 @@ services:
- fiddle-network

client:
build: ./client
build:
context: ./client
args:
- VITE_SESSION_SECRET=$VITE_SESSION_SECRET
ports:
- "80:8080"
networks:
- fiddle-network
environment:
- VITE_SESSION_SECRET=$VITE_SESSION_SECRET
- NODE_ENV=production

networks:
fiddle-network:
Expand Down

0 comments on commit 80f87d1

Please sign in to comment.