mirror of
https://gitee.com/dromara/MaxKey.git
synced 2026-05-14 12:32:09 +08:00
Dockerfile
This commit is contained in:
15
maxkey-webs/maxkey-web-openapi/Dockerfile
Normal file
15
maxkey-webs/maxkey-web-openapi/Dockerfile
Normal file
@@ -0,0 +1,15 @@
|
||||
FROM adoptopenjdk:8-jre
|
||||
|
||||
RUN mkdir -p /maxkey-openapi
|
||||
|
||||
WORKDIR /maxkey-openapi
|
||||
|
||||
ARG JAR_FILE=build/libs/maxkey-openapi-boot-*-ga.jar
|
||||
|
||||
COPY ${JAR_FILE} maxkey-openapi-boot.jar
|
||||
|
||||
EXPOSE 9525
|
||||
|
||||
ENV TZ=Asia/Shanghai JAVA_OPTS="-Xms128m -Xmx256m -Djava.security.egd=file:/dev/./urandom"
|
||||
|
||||
CMD sleep 60; java -jar maxkey-openapi-boot.jar $JAVA_OPTS
|
||||
@@ -41,7 +41,7 @@ jib {
|
||||
}
|
||||
container {
|
||||
mainClass = "org.maxkey.MaxKeyOpenApiApplication"
|
||||
jvmFlags = ['-Dfile.encoding=utf-8', '-Dserver.port=9526','-Duser.timezone=Asia/Shanghai']
|
||||
jvmFlags = ['-Dfile.encoding=utf-8', '-Dserver.port=9525','-Duser.timezone=Asia/Shanghai']
|
||||
ports = ['9525']
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user