Add Dockerfile

This commit is contained in:
2023-05-15 22:52:39 +02:00
parent 82ea867dde
commit 595e3219ac

13
Dockerfile Normal file
View File

@@ -0,0 +1,13 @@
FROM eclipse-temurin:20-jdk-alpine
LABEL authors="laurentkap"
VOLUME /tmp
ARG EXTRACTED=target/extracted
COPY ${EXTRACTED}/dependencies/ ./
COPY ${EXTRACTED}/spring-boot-loader/ ./
COPY ${EXTRACTED}/snapshot-dependencies/ ./
COPY ${EXTRACTED}/application/ ./
EXPOSE 8080
RUN addgroup -S demo && adduser -S demo -G demo
USER demo
ENTRYPOINT ["java","org.springframework.boot.loader.JarLauncher"]