2021-01-16 11:02:20 +08:00
|
|
|
FROM maven:3.6.3-jdk-8 AS maven
|
|
|
|
USER root
|
|
|
|
COPY ./ /tmp/code
|
2021-01-16 11:09:07 +08:00
|
|
|
RUN cd /tmp/code && mvn clean package -Dmaven.test.skip=true -Dmaven.javadoc.skip=true
|
2021-01-16 11:02:20 +08:00
|
|
|
|
|
|
|
|
2021-01-16 10:20:33 +08:00
|
|
|
FROM java:8
|
2021-01-16 11:02:20 +08:00
|
|
|
COPY --from=maven /tmp/code/target/*.jar /webdav-teambition.jar
|
|
|
|
EXPOSE 8080
|
|
|
|
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/webdav-teambition.jar"]
|