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 2316c69 commit dca09e4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,8 @@ COPY --from=build /app/prisma ./prisma
# Expose the port the app runs on
EXPOSE 3001

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

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

0 comments on commit dca09e4

Please sign in to comment.