api-gateway/Dockerfile

8 lines
231 B
Docker
Raw Permalink Normal View History

2020-04-10 15:46:49 +02:00
FROM openjdk:11-jdk-oracle
2020-04-10 16:00:28 +02:00
RUN groupadd spring && useradd -g spring spring
2020-04-10 15:33:49 +02:00
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"]