From 516d2de27a4efb494c59bb2a562a121090849fba Mon Sep 17 00:00:00 2001 From: Yujith Isura Date: Mon, 23 Mar 2020 17:35:29 +0530 Subject: [PATCH] local timezone added for prod and stag env --- client/Production.Dockerfile | 2 ++ client/Staging.Dockerfile | 2 ++ client/Training.Dockerfile | 2 ++ 3 files changed, 6 insertions(+) diff --git a/client/Production.Dockerfile b/client/Production.Dockerfile index ee36f850..07dc3069 100644 --- a/client/Production.Dockerfile +++ b/client/Production.Dockerfile @@ -11,6 +11,8 @@ ENV REACT_APP_AUTH_BASE_URL=https://nominations.elections.gov.lk ENV REACT_APP_NOMINATION_URL=https://nominations.elections.gov.lk RUN npm run build +RUN rm /etc/localtime +RUN ln -s /usr/share/zoneinfo/Asia/Colombo /etc/localtime FROM nginx:1.15 diff --git a/client/Staging.Dockerfile b/client/Staging.Dockerfile index 55323cdd..86262097 100644 --- a/client/Staging.Dockerfile +++ b/client/Staging.Dockerfile @@ -13,6 +13,8 @@ ENV REACT_APP_AUTH_BASE_URL=https://nominations.ecstag.opensource.lk ENV REACT_APP_NOMINATION_URL=https://nominations.ecstag.opensource.lk RUN npm run build +RUN rm /etc/localtime +RUN ln -s /usr/share/zoneinfo/Asia/Colombo /etc/localtime FROM nginx:1.15 diff --git a/client/Training.Dockerfile b/client/Training.Dockerfile index 2629006f..971ca29a 100644 --- a/client/Training.Dockerfile +++ b/client/Training.Dockerfile @@ -13,6 +13,8 @@ ENV REACT_APP_AUTH_BASE_URL=https://nominations.training.elections.gov.lk ENV REACT_APP_NOMINATION_URL=https://nominations.training.elections.gov.lk RUN npm run build +RUN rm /etc/localtime +RUN ln -s /usr/share/zoneinfo/Asia/Colombo /etc/localtime FROM nginx:1.15