Gerüst mit Form-Auth
This commit is contained in:
23
src/main/docker/Dockerfile.native-distroless
Normal file
23
src/main/docker/Dockerfile.native-distroless
Normal file
@@ -0,0 +1,23 @@
|
||||
####
|
||||
# This Dockerfile is used in order to build a distroless container that runs the Quarkus application in native (no JVM) mode
|
||||
#
|
||||
# Before building the container image run:
|
||||
#
|
||||
# ./mvnw package -Pnative
|
||||
#
|
||||
# Then, build the image with:
|
||||
#
|
||||
# docker build -f src/main/docker/Dockerfile.native-distroless -t quarkus/buerokalender .
|
||||
#
|
||||
# Then run the container using:
|
||||
#
|
||||
# docker run -i --rm -p 8080:8080 quarkus/buerokalender
|
||||
#
|
||||
###
|
||||
FROM quay.io/quarkus/quarkus-distroless-image:1.0
|
||||
COPY target/*-runner /application
|
||||
|
||||
EXPOSE 8080
|
||||
USER nonroot
|
||||
|
||||
CMD ["./application", "-Dquarkus.http.host=0.0.0.0"]
|
||||
Reference in New Issue
Block a user