set timezone in dockerfile

master
Tudor Stanciu 2021-12-05 23:31:00 +02:00
parent aae5a3523f
commit f4dc695fcb
1 changed files with 2 additions and 0 deletions

View File

@ -28,6 +28,8 @@ COPY --from=publish /app/publish .
ENV urls="http://*:80" ENV urls="http://*:80"
ENV ConnectionStrings__DatabaseConnection="***REMOVED***" 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 #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 RUN sed -i 's/TLSv1.2/TLSv1.0/g' /etc/ssl/openssl.cnf