Skip to content

Commit 0df1b9f

Browse files
Update Dockerfile
1 parent 6b8ddeb commit 0df1b9f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Dockerfile

+4-1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ FROM ubuntu:20.04
4141

4242
ARG ADDITIONAL_PACKAGES=""
4343
ENV ADDITIONAL_PACKAGES=${ADDITIONAL_PACKAGES}
44+
ENV TZ="Etc/UTC"
4445
ENV DEBIAN_FRONTEND noninteractive
4546
RUN apt update && apt install -y software-properties-common apt-utils
4647
#RUN add-apt-repository "deb http://archive.canonical.com/ $(lsb_release -sc) partner" && apt update
@@ -72,6 +73,7 @@ RUN apt -y full-upgrade && apt install -y \
7273
xorgxrdp \
7374
xprintidle \
7475
xrdp \
76+
tzdata \
7577
$ADDITIONAL_PACKAGES && \
7678
apt-get remove -y light-locker xscreensaver && \
7779
apt-get autoremove -yy && \
@@ -93,7 +95,8 @@ RUN cp /etc/X11/xrdp/xorg.conf /etc/X11 && \
9395
echo "xfce4-session" >> /etc/skel/.Xsession && \
9496
cp -r /etc/ssh /ssh_orig && \
9597
rm -rf /etc/ssh/* && \
96-
rm -rf /etc/xrdp/rsakeys.ini /etc/xrdp/*.pem
98+
rm -rf /etc/xrdp/rsakeys.ini /etc/xrdp/*.pem && \
99+
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
97100

98101
# Docker config
99102
VOLUME ["/etc/ssh","/home"]

0 commit comments

Comments
 (0)