Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter-Fayez95 authored Aug 27, 2024
1 parent 2b0b651 commit 64d274a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ EXPOSE 3001
RUN --mount=type=secret,id=secret_1 cat /run/secrets/secret_1

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

# Start the application
CMD ["npm", "run", "start:prod"]

0 comments on commit 64d274a

Please sign in to comment.