Umstellung auf podman in Arbeit
(cherry picked from commit 1a92c63ef6d60e9dcba513ebf60cbd9f18a142e8)
This commit is contained in:
@@ -10,27 +10,23 @@ RUN gradle build --no-daemon
|
||||
# ----------------------------------------------------------------------- #
|
||||
#FROM alpine/java:21-jdk AS run
|
||||
|
||||
#RUN adduser --system appuser
|
||||
#COPY --from=builder /build/libs/kontor-quarkus-0.2.0-SNAPSHOT.jar app.jar
|
||||
|
||||
#COPY --from=builder --chown=appuser:appuser /build/libs/kontor-quarkus-0.2.0-SNAPSHOT.jar app.jar
|
||||
|
||||
#EXPOSE 8800
|
||||
#USER appuser
|
||||
#EXPOSE 8300
|
||||
#CMD ["java", "-jar", "-Dquarkus.http.host=0.0.0.0", "app.jar"]
|
||||
|
||||
# ----------------------------------------------------------------------- #
|
||||
FROM registry.access.redhat.com/ubi9/openjdk-21:1.23
|
||||
|
||||
ENV LANGUAGE='en_US:en'
|
||||
ENV LANGUAGE='de_DE:de'
|
||||
|
||||
# We make four distinct layers so if there are application changes the library layers can be re-used
|
||||
COPY --from=builder --chown=185 build/quarkus-app/lib/ /deployments/lib/
|
||||
COPY --from=builder --chown=185 build/quarkus-app/*.jar /deployments/
|
||||
COPY --from=builder --chown=185 build/quarkus-app/app/ /deployments/app/
|
||||
COPY --from=builder --chown=185 build/quarkus-app/quarkus/ /deployments/quarkus/
|
||||
COPY --from=builder build/quarkus-app/lib/ /deployments/lib/
|
||||
COPY --from=builder build/quarkus-app/*.jar /deployments/
|
||||
COPY --from=builder build/quarkus-app/app/ /deployments/app/
|
||||
COPY --from=builder build/quarkus-app/quarkus/ /deployments/quarkus/
|
||||
|
||||
EXPOSE 8800
|
||||
USER 185
|
||||
EXPOSE 8300
|
||||
ENV JAVA_OPTS_APPEND="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
|
||||
ENV JAVA_APP_JAR="/deployments/quarkus-run.jar"
|
||||
|
||||
@@ -8,7 +8,7 @@ import org.eclipse.microprofile.openapi.annotations.tags.Tag
|
||||
@OpenAPIDefinition(
|
||||
info = Info(
|
||||
title = "Kontor",
|
||||
version = "0.2.0"
|
||||
version = "0.3.0"
|
||||
)
|
||||
)
|
||||
class KontorApplication: Application()
|
||||
@@ -1,4 +1,4 @@
|
||||
quarkus.http.port=8800
|
||||
quarkus.http.port=8300
|
||||
quarkus.swagger-ui.always-include=true
|
||||
quarkus.datasource.db-kind=postgresql
|
||||
quarkus.datasource.username=kontor
|
||||
|
||||
Reference in New Issue
Block a user