Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
19 lines
382 B
Docker
19 lines
382 B
Docker
FROM maven:3.8.1-jdk-8 AS builder
|
|
|
|
LABEL maintainer="phithon <root@leavesongs.com>"
|
|
|
|
COPY ./ /usr/src/
|
|
|
|
RUN set -ex \
|
|
&& cd /usr/src \
|
|
&& mvn clean package
|
|
|
|
FROM openjdk:8-jre
|
|
|
|
COPY --from=builder /usr/src/target/dubbo-sample-1.0-SNAPSHOT.jar /dubbo-sample-1.0-SNAPSHOT.jar
|
|
COPY docker-entrypoint.sh /docker-entrypoint.sh
|
|
|
|
EXPOSE 8080
|
|
|
|
CMD ["bash", "/docker-entrypoint.sh"]
|