Files
afterwork-server-impl-quarkus/src/main/docker/Dockerfile.native
lionsdev 770176092d
Some checks failed
CI/CD Lions Pipeline / Build + Push + Deploy (push) Failing after 9s
rename: artifactId mic-after-work-server-impl-quarkus-main → afterwork-server-impl-quarkus
- pom.xml artifactId
- application.properties + application-prod.properties : DB_NAME default afterwork
- src/main/docker/Dockerfile.* : refs images
- Dockerfile racine ajouté (lionsctl pipeline : ubi8/openjdk-21:1.21, UID 1001)
- Cohérence avec renaming Gitea repo lionsdev/afterwork-server-impl-quarkus
2026-04-24 18:51:19 +00:00

28 lines
687 B
Docker

####
# This Dockerfile is used in order to build a container that runs the Quarkus application in native (no JVM) mode.
#
# Before building the container image run:
#
# ./mvnw package -Dnative
#
# Then, build the image with:
#
# docker build -f src/main/docker/Dockerfile.native -t quarkus/afterwork .
#
# Then run the container using:
#
# docker run -i --rm -p 8080:8080 quarkus/afterwork
#
###
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.10
WORKDIR /work/
RUN chown 1001 /work \
&& chmod "g+rwX" /work \
&& chown 1001:root /work
COPY --chown=1001:root target/*-runner /work/application
EXPOSE 8080
USER 1001
ENTRYPOINT ["./application", "-Dquarkus.http.host=0.0.0.0"]