8 lines
237 B
Docker
8 lines
237 B
Docker
|
FROM openjdk:11-jdk-alpine
|
||
|
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"]
|