Files
shot-crafter-calculator/Dockerfile
T
darroyo 9db3f7a914
CI / Build Native (push) Failing after 2s
CI / Build JVM (push) Failing after 7s
CI / Build & Push Native Image (push) Has been skipped
ci: build native Docker image and push to Gitea Container Registry
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).
2026-08-12 16:16:51 -04:00

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"]