Files
shot-crafter-calculator/Dockerfile
T
darroyo 9646236fa8
CI / Build Native (push) Successful in 20m1s
feat: externalize config via env vars
- Add .env.example with all configurable variables documented
  (DB URL, HTTP port/host, cookie, JWT issuer/keys, log level)
- Remove hardcoded -Dquarkus.http.host from Dockerfile ENTRYPOINT
  (application.properties already sets the default; env vars
  can now override it at runtime without conflicting with -D flags)

All env vars follow Quarkus's auto-binding convention:
property.key → PROPERTY_KEY (uppercase)

Most useful for production:
- QUARKUS_DATASOURCE_JDBC_URL: DB file path
- QUARKUS_HTTP_PORT: HTTP port
- QUARKUS_HTTP_HOST: bind interface
- APP_AUTH_COOKIE_SECURE: enable Secure flag behind HTTPS
- MP_JWT_VERIFY_PUBLICKEY_LOCATION: externalize RSA keys
2026-08-13 09:27:53 -04:00

13 lines
325 B
Docker

FROM quay.io/quarkus/quarkus-micro-image:2.0
WORKDIR /work/
COPY build-output/shot-crafter-calculator-1.0.0-runner /work/application
RUN chmod 775 /work /work/application \
&& chown -R 1001 /work \
&& echo "securerandom.source=file:/dev/urandom" >> /work/application
EXPOSE 8080
USER 1001
ENTRYPOINT ["./application"]