fix: docker build on native

This commit is contained in:
Juan Diego López
2026-03-16 20:42:57 -04:00
parent d57ac32476
commit 525f106eb4
3 changed files with 25 additions and 16 deletions
+8 -6
View File
@@ -1,6 +1,8 @@
target/
data/
.git/
.idea/
.DS_Store
*.md
*
!docker/entrypoint.sh
!target/*.so
!target/*.properties
!target/*-runner
!target/*-runner.jar
!target/lib/*
!target/quarkus-app/*
+1 -1
View File
@@ -17,7 +17,7 @@ jobs:
- uses: actions/setup-java@v4
with:
java-version: '25'
java-version: '24'
distribution: 'temurin'
cache: maven
+16 -9
View File
@@ -1,16 +1,23 @@
FROM quay.io/quarkus/quarkus-micro-image:2.0
WORKDIR /app
VOLUME /app/data
EXPOSE 4566
FROM registry.access.redhat.com/ubi9-minimal:9.7
ARG VERSION=latest
ARG BINARY_FILE=application
ENV FLOCI_VERSION=${VERSION}
COPY ${BINARY_FILE} /app/application
RUN chmod +x /app/application
WORKDIR /app
ENTRYPOINT ["/app/application"]
VOLUME /app/data
RUN chown 1001 /app \
&& chmod "g+rwX" /app \
&& chown 1001:root /app
COPY --chown=1001:root target/*.properties target/*.so /app/
COPY --chown=1001:root target/*-runner /app/application
EXPOSE 4566
USER 1001
CMD ["./application", "-Dquarkus.http.host=0.0.0.0"]