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.
14 lines
301 B
14 lines
301 B
FROM maven:3-openjdk-11 AS build
|
|
COPY . /home/maven/src
|
|
WORKDIR /home/maven/src
|
|
RUN mvn clean package
|
|
|
|
FROM openjdk:11
|
|
EXPOSE 8080
|
|
|
|
RUN mkdir /app
|
|
|
|
|
|
COPY --from=build /home/maven/src/target/*-with-dependencies.jar /app/ktor-docker-sample.jar
|
|
ENTRYPOINT ["java", "-jar", "/app/ktor-docker-sample.jar"]
|