You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
399 B
17 lines
399 B
FROM openjdk:8-jdk-slim AS builder
|
|
|
|
COPY multibook /usr/src/
|
|
|
|
WORKDIR /usr/src/multibook
|
|
|
|
RUN apt-get update && apt-get install -y mvn && \
|
|
./mvnw clean package spring-boot:repackage
|
|
|
|
FROM openjdk:8-jdk-slim AS app
|
|
|
|
COPY --from=builder /usr/src/multibook/target/multibook.jar /usr/src/app.jar
|
|
|
|
WORKDIR /usr/src
|
|
|
|
ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "app.jar"]
|
|
|
|
|