diff --git a/Dockerfile b/Dockerfile index b28b54f..b2be6d8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,12 +15,11 @@ RUN mkdir /var/run/sshd && \ sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd && \ echo "export VISIBLE=now" >> /etc/profile -# Set the locale -RUN DEBIAN_FRONTEND=noninteractive TZ=CET apt-get -y install tzdata -RUN locale-gen en_US.UTF-8 -ENV LANG en_US.UTF-8 -ENV LANGUAGE en_US:en -ENV LC_ALL en_US.UTF-8 +# Set the timezone and locale +RUN apt-get install -yq tzdata && \ + ln -fs /usr/share/zoneinfo/Europe/Stockholm /etc/localtime && \ + dpkg-reconfigure -f noninteractive tzdata && \ + locale-gen "en_US.UTF-8" # Expose the SSH port EXPOSE 22