feat(deploy): compose deploy fixed
All checks were successful
Build, Test and Deploy / test-backend (push) Successful in 1m12s
Build, Test and Deploy / build-and-push (push) Successful in 15s
Build, Test and Deploy / deploy (push) Successful in 6s

This commit is contained in:
2026-02-11 16:14:00 +01:00
parent 5ba203a8d1
commit ab5f6a609d
3 changed files with 17 additions and 2 deletions

View File

@@ -41,4 +41,6 @@ COPY profiles ./profiles
EXPOSE 8080
CMD ["java", "-jar", "app.jar"]
COPY entrypoint.sh .
RUN chmod +x entrypoint.sh
ENTRYPOINT ["./entrypoint.sh"]

13
backend/entrypoint.sh Normal file
View File

@@ -0,0 +1,13 @@
#!/bin/sh
echo "----------------------------------------------------------------"
echo "Starting Backend Application"
echo "DB_URL: $DB_URL"
echo "DB_USERNAME: $DB_USERNAME"
echo "SLICER_PATH: $SLICER_PATH"
echo "----------------------------------------------------------------"
# Exec java with explicit properties from env
exec java -jar app.jar \
--spring.datasource.url="${DB_URL}" \
--spring.datasource.username="${DB_USERNAME}" \
--spring.datasource.password="${DB_PASSWORD}"