Skip to content

Commit

Permalink
try using .env file in Dockerfile for vite env
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronlifton committed Mar 21, 2024
1 parent 9eb17f3 commit a25f30f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ RUN --mount=type=secret,id=env,dst=/etc/secrets/.env \
TURSO_DB_AUTH_TOKEN=$(grep TURSO_DB_AUTH_TOKEN /etc/secrets/.env | cut -d '=' -f 2) \
TURSO_DB_URL=$(grep TURSO_DB_URL /etc/secrets/.env | cut -d '=' -f 2) \
export TURSO_DB_URL && export TURSO_DB_AUTH_TOKEN \
&& ln -s /etc/secrets/.env .env \
&& npm install \
&& npm run prisma-generate \
&& npm run build
Expand Down

0 comments on commit a25f30f

Please sign in to comment.