refactor: Injection des env var dans le frontend

This commit is contained in:
Luc SORIGNET
2025-02-16 14:22:34 +01:00
parent cccb5efa2c
commit aae5d27d8c
3 changed files with 76 additions and 14 deletions

View File

@ -29,8 +29,10 @@ ENV NODE_ENV=production
COPY --from=builder /app/.next/standalone ./
COPY --from=builder /app/.next/static ./.next/static
COPY --from=builder /app/messages ./messages
COPY docker/entrypoint.sh /app/entrypoint.sh
EXPOSE 3000
CMD ["node", "server.js"]
ENTRYPOINT ["/app/entrypoint.sh"]
# Final stage selection
FROM ${BUILD_MODE}