docker images

This commit is contained in:
allencai
2026-01-22 10:46:47 +08:00
parent b9d2e0e43a
commit c54eea076a
22 changed files with 468 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
FROM openjdk:11
ENV APP_DIR="/calculate"
ENV JAVA_OPTS=""
RUN mkdir -p ${APP_DIR}
RUN mkdir -p ${APP_DIR}/logs
ADD calculate.jar ${APP_DIR}/app.jar
WORKDIR ${APP_DIR}
EXPOSE 8080
ENTRYPOINT ["sh", "-c", "java ${JAVA_OPTS} -Dspring.config.location=${APP_DIR}/application.properties -jar ${APP_DIR}/app.jar > ${APP_DIR}/logs/application.log 2>&1"]
+3
View File
@@ -0,0 +1,3 @@
#/bin/bash
docker build -t ylgh-calculate:1.0 .
Binary file not shown.