api-gateway/Dockerfile

8 lines
237 B
Docker
Raw Normal View History

2020-04-10 15:46:49 +02:00
FROM openjdk:11-jdk-oracle
2020-04-10 15:33:49 +02:00
RUN addgroup -S spring && adduser -S spring -G spring
USER spring:spring
WORKDIR /app
EXPOSE 8080
ARG JAR_FILE=build/libs/*.jar
COPY ${JAR_FILE} api-gateway.jar
ENTRYPOINT ["java","-jar","/app/api-gateway.jar"]