Skip to content

Commit eea5051

Browse files
committed
Dockerized jsonblob
1 parent 7f11ffb commit eea5051

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

Dockerfile

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
FROM maven:3.6.1-jdk-8-slim
2+
3+
LABEL maintainer="[email protected]"
4+
LABEL version="1.0.0"
5+
6+
RUN mkdir -p /app
7+
WORKDIR /app
8+
9+
COPY . .
10+
11+
RUN mvn clean package
12+
13+
14+
FROM openjdk:8-jre-slim
15+
16+
LABEL maintainer="[email protected]"
17+
LABEL version="1.0.0"
18+
19+
EXPOSE 8080
20+
21+
RUN mkdir -p /opt/jsonblobs/
22+
RUN mkdir /app
23+
WORKDIR /app
24+
25+
VOLUME /opt/jsonblobs
26+
27+
COPY --from=0 /app/target/jsonblob.jar .
28+
COPY --from=0 /app/target/config/jsonblob.yml .
29+
30+
ENTRYPOINT [ "java", "-Ddw.blobManager.fileSystemBlogDataDirectory=/opt/jsonblobs/", "-jar", "/app/jsonblob.jar", "server", "/app/jsonblob.yml"]

0 commit comments

Comments
 (0)