first commit
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
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
This commit is contained in:
20
base/shiro/1.5.1/Dockerfile
Normal file
20
base/shiro/1.5.1/Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
||||
FROM maven:3-jdk-8 AS builder
|
||||
|
||||
LABEL MAINTAINER="phithon <root@leavesongs.com>"
|
||||
|
||||
COPY ./code/ /usr/src/
|
||||
|
||||
WORKDIR /usr/src
|
||||
|
||||
RUN cd /usr/src; \
|
||||
mvn -U clean package -Dmaven.test.skip=true
|
||||
|
||||
FROM openjdk:8-jre
|
||||
|
||||
LABEL MAINTAINER="phithon <root@leavesongs.com>"
|
||||
|
||||
COPY --from=builder /usr/src/target/shirodemo-1.0-SNAPSHOT.jar /shirodemo-1.0-SNAPSHOT.jar
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
CMD ["java", "-jar", "/shirodemo-1.0-SNAPSHOT.jar"]
|
Reference in New Issue
Block a user