This commit is contained in:
Jesse-Ma
2023-04-19 16:02:21 +08:00
parent 64cdba04ce
commit ecc72cbea7
5 changed files with 83 additions and 61 deletions

View File

@@ -0,0 +1,8 @@
FROM openjdk:17-slim
VOLUME /tmp
ADD flagnote-service-0.0.1.jar app.jar
RUN sh -c 'touch /app.jar'
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
RUN apt-get update && apt-get install -y curl
ENV JAVA_OPTS=""
ENTRYPOINT [ "sh", "-c", "exec java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /app.jar" ]