From 6d0bc8a6eb247a2268b5ab8f32f8ab7ba5bda09e Mon Sep 17 00:00:00 2001 From: Kosala Gangabadage Date: Thu, 9 Apr 2020 18:49:22 +0530 Subject: [PATCH] Change Timezone to Asia/Colombo --- Dockerfile | 2 ++ Production.Dockerfile | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index 3ad7d42..810476e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,7 @@ FROM frolvlad/alpine-java:jre8-slim EXPOSE 8000 COPY target/covid19-1.0.0-SNAPSHOT/*.* ./ +RUN rm /etc/localtime +RUN ln -s /usr/share/zoneinfo/Asia/Colombo /etc/localtime ENTRYPOINT ["java","-jar","covid19.jar"] diff --git a/Production.Dockerfile b/Production.Dockerfile index ae26ca8..7ce4b9c 100644 --- a/Production.Dockerfile +++ b/Production.Dockerfile @@ -10,4 +10,6 @@ RUN ls -l /tmp/target FROM frolvlad/alpine-java:jre8-slim EXPOSE 8000 COPY --from=build /tmp/target/covid19-1.0.0-SNAPSHOT/*.* ./ +RUN rm /etc/localtime +RUN ln -s /usr/share/zoneinfo/Asia/Colombo /etc/localtime ENTRYPOINT ["java","-jar","covid19.jar"]