Skip to content

Commit 93ea78b

Browse files
committed
Set up the timezone to my timezone (Europe/Paris)
1 parent 4eaae00 commit 93ea78b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ LABEL name="Silverpeas Dev" description="An image to build a Silverpeas project
1212
MAINTAINER Miguel Moquillon "miguel.moquillon@silverpeas.org"
1313

1414
ENV TERM=xterm
15+
ENV TZ=Europe/Paris
16+
ENV DEBIAN_FRONTEND=noninteractive
1517

1618
# Parameters whose values are required for the tests to succeed
1719
ARG DEFAULT_LOCALE=fr_FR.UTF-8
@@ -84,7 +86,9 @@ RUN apt-get update && apt-get install -y \
8486
&& echo "fr_FR.UTF-8 UTF-8" >> /etc/locale.gen \
8587
&& echo "de_DE.UTF-8 UTF-8" >> /etc/locale.gen \
8688
&& locale-gen \
87-
&& update-locale LANG=${DEFAULT_LOCALE} LANGUAGE=${DEFAULT_LOCALE} LC_ALL=${DEFAULT_LOCALE}
89+
&& update-locale LANG=${DEFAULT_LOCALE} LANGUAGE=${DEFAULT_LOCALE} LC_ALL=${DEFAULT_LOCALE} \
90+
&& ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone \
91+
&& dpkg-reconfigure --frontend noninteractive tzdata
8892

8993
COPY src/inputrc /home/silveruser/.inputrc
9094
COPY src/bash_aliases /home/silveruser/.bash_aliases

0 commit comments

Comments
 (0)