timemanager/backend/Dockerfile

9 lines
202 B
Docker
Raw Normal View History

2023-09-25 11:01:28 +02:00
FROM openjdk:17-jdk-alpine
RUN addgroup -S spring && adduser -S spring -G spring
USER spring:spring
ARG JAR_FILE=target/*.jar
COPY ${JAR_FILE} app.jar
EXPOSE 8080
ENTRYPOINT ["java","-jar","/app.jar"]