#Start with a base image containing Java runtime
FROM java:8
# Make port 8080 available to the world outside this container
EXPOSE 8080
# Add the application's jar to the container
COPY ./test-0.0.1-SNAPSHOT.war test-server.war
# Run the jar file
ENTRYPOINT ["java", "-jar","/test-server.war"]
#Start with a base image containing Java runtime
FROM java:8
# Make port 8080 available to the world outside this container
EXPOSE 8080
# Copy Certfile
COPY ./localtime /etc/localtime
COPY ./timezone /etc/timezone
# Add the application's jar to the container
COPY ./test-0.0.1-SNAPSHOT.war test-server.war
# Run the jar file
ENTRYPOINT ["java", "-jar","/test-server.war"]
Docker 의 timezone과 java application(Spring boot)의 timezone을 맞추자!