spider-flow/Dockerfile
2020-04-21 15:23:03 +08:00

20 lines
363 B
Docker

#FROM maven:3.6.1-jdk-8-alpine AS build
# https://github.com/nekolr/maven-image/tree/master/3.6.1-jdk-8
FROM nekolr/maven:3.6.1 AS build
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY . .
RUN mvn clean package
FROM openjdk:8-jdk-alpine
COPY --from=build /usr/src/app/spider-flow-web/target/spider-flow.jar .
EXPOSE 8088
CMD java -jar spider-flow.jar