-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #58 from bitjourney/20220823_upgrade_packages
20220823 upgrade packages
- Loading branch information
Showing
2 changed files
with
37 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# This is a dockerfile for local debbug | ||
# usage | ||
# 1. Execute './gradlew stage' | ||
# 2. Execute 'docker build -f DockerfileForDebug . -t plantuml_test' | ||
|
||
# https://hub.docker.com/_/eclipse-temurin?tab=description&page=2&name=17 | ||
FROM eclipse-temurin:17 | ||
|
||
ARG PLANTUML_SERVICE_BIN_DIR="/home/app/plantuml-service/bin" | ||
ARG PLANTUML_SERVICE_PATH="${PLANTUML_SERVICE_BIN_DIR}/plantuml-service.jar" | ||
|
||
USER root | ||
|
||
RUN useradd --create-home app \ | ||
&& apt-get update -qq \ | ||
&& apt-get upgrade -y \ | ||
&& apt-get install -y graphviz fonts-takao curl \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& mkdir -p ${PLANTUML_SERVICE_BIN_DIR} \ | ||
&& chown -R app ${PLANTUML_SERVICE_BIN_DIR} | ||
|
||
COPY build/libs/plantuml-service.jar ${PLANTUML_SERVICE_BIN_DIR} | ||
|
||
USER app | ||
|
||
ENTRYPOINT ["/opt/java/openjdk/bin/java"] | ||
CMD ["-jar", "/home/app/plantuml-service/bin/plantuml-service.jar"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters