9db3f7a914
Adds:
- Dockerfile based on quarkus-micro-image:2.0 (~50MB base)
Runs the native binary as non-root user 1001, exposes 8080
- .dockerignore to exclude build artifacts
- Gitea Actions workflow with 3 parallel jobs:
- build-jvm: standard JAR (mvn package)
- build-native: GraalVM native binary (mvn package -Pnative)
- docker-native: takes the native binary artifact, builds
the container image and pushes to
gitea.danielarroyo.cl/proyectos/shot-crafter-calculator
with tags 'latest' and short SHA
Triggers: push to main and PRs (docker job only on push).
Required secrets: GITEA_USERNAME, GITEA_TOKEN (write:packages).
13 lines
350 B
Docker
13 lines
350 B
Docker
FROM quay.io/quarkus/quarkus-micro-image:2.0
|
|
WORKDIR /work/
|
|
COPY target/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", "-Dquarkus.http.host=0.0.0.0"]
|