11 lines
384 B
Docker
11 lines
384 B
Docker
# Build stage
|
|
FROM maven:3.6.0-jdk-11-slim AS build
|
|
COPY src /home/app/src
|
|
COPY pom.xml /home/app
|
|
RUN mvn -f /home/app/pom.xml clean package
|
|
|
|
# Package stage
|
|
FROM openjdk:11-jre-slim
|
|
COPY --from=build /home/app/target/downloader-bot-1.0-SNAPSHOT.jar /usr/local/lib/downloader-bot-1.0-SNAPSHOT.jar
|
|
EXPOSE 8080
|
|
ENTRYPOINT ["java","-jar","/usr/local/lib/downloader-bot-1.0-SNAPSHOT.jar"] |