parent
bed1c25749
commit
b8418cd8f2
@ -0,0 +1,17 @@ |
|||||||
|
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"] |
||||||
|
|
@ -0,0 +1,6 @@ |
|||||||
|
version: '3' |
||||||
|
services: |
||||||
|
app: |
||||||
|
build: . |
||||||
|
environment: |
||||||
|
TZ: 'Europe/Rome' |
Loading…
Reference in new issue