From f4dc695fcb4000fb2d83bfccdebff1914b1b8c05 Mon Sep 17 00:00:00 2001 From: Tudor Stanciu Date: Sun, 5 Dec 2021 23:31:00 +0200 Subject: [PATCH] set timezone in dockerfile --- IdentityServer.Api/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/IdentityServer.Api/Dockerfile b/IdentityServer.Api/Dockerfile index 1f4bb98..7e7cfa8 100644 --- a/IdentityServer.Api/Dockerfile +++ b/IdentityServer.Api/Dockerfile @@ -28,6 +28,8 @@ COPY --from=publish /app/publish . ENV urls="http://*:80" ENV ConnectionStrings__DatabaseConnection="***REMOVED***" +ENV TZ=Europe/Bucharest +RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone #Workaround to lower the TLS level in container for old sql server version RUN sed -i 's/TLSv1.2/TLSv1.0/g' /etc/ssl/openssl.cnf