File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ FROM ubuntu:20.04
41
41
42
42
ARG ADDITIONAL_PACKAGES=""
43
43
ENV ADDITIONAL_PACKAGES=${ADDITIONAL_PACKAGES}
44
+ ENV TZ="Etc/UTC"
44
45
ENV DEBIAN_FRONTEND noninteractive
45
46
RUN apt update && apt install -y software-properties-common apt-utils
46
47
# 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 \
72
73
xorgxrdp \
73
74
xprintidle \
74
75
xrdp \
76
+ tzdata \
75
77
$ADDITIONAL_PACKAGES && \
76
78
apt-get remove -y light-locker xscreensaver && \
77
79
apt-get autoremove -yy && \
@@ -93,7 +95,8 @@ RUN cp /etc/X11/xrdp/xorg.conf /etc/X11 && \
93
95
echo "xfce4-session" >> /etc/skel/.Xsession && \
94
96
cp -r /etc/ssh /ssh_orig && \
95
97
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
97
100
98
101
# Docker config
99
102
VOLUME ["/etc/ssh" ,"/home" ]
You can’t perform that action at this time.
0 commit comments