Dockerfile
601 字节
FROM java:8u111
VOLUME /tmp
#ENV PINPOINT_VERSION="2.3.1"
#ENV AGENT_ID="gateway-Utf8-master1.0"
#ENV APP_NAME="gateway-Utf8"
#ENV JAVA_OPTS="-javaagent:/pinpoint-agent/pinpoint-bootstrap-${PINPOINT_VERSION}.jar -Dpinpoint.agentId=${AGENT_ID} -Dpinpoint.applicationName=${APP_NAME} -Dspring.profiles.active=${SPRING_PROFILES}"
ADD *.jar app.jar
EXPOSE 12343
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo "Asia/Shanghai" > /etc/timezone && dpkg-reconfigure -f noninteractive tzdata
#ENTRYPOINT ["java","$JAVA_OPTS","-jar","/app.jar"]
ENTRYPOINT java -jar /app.jar
# Ubuntu 时区