Skip to content

Commit

Permalink
Try coping .env.production
Browse files Browse the repository at this point in the history
  • Loading branch information
diksipav committed Aug 1, 2024
1 parent 0bcd839 commit 91da77c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ ENV NODE_ENV production
ENV BASE_URL https://localhost:3000
ENV EDGEDB_INSTANCE edgedb/qna

# Copy the .env.production file from the builder stage
COPY .env.production ./

RUN --mount=type=secret,id=OPENAI_KEY \
sed -i "s/OPENAI_KEY=/OPENAI_KEY=$(cat /run/secrets/OPENAI_KEY)/" .env.production

Expand Down

0 comments on commit 91da77c

Please sign in to comment.