Skip to content

Commit 1cccbd8

Browse files
Update Dockerfile
1 parent 634b293 commit 1cccbd8

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:24.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
@@ -71,6 +72,7 @@ RUN apt -y full-upgrade && apt install -y \
7172
xorgxrdp \
7273
xprintidle \
7374
xrdp \
75+
tzdata \
7476
$ADDITIONAL_PACKAGES && \
7577
apt-get remove -y light-locker xscreensaver && \
7678
apt-get autoremove -yy && \
@@ -100,7 +102,8 @@ RUN cp /etc/X11/xrdp/xorg.conf /etc/X11 && \
100102
echo "xfce4-session" >> /etc/skel/.Xsession && \
101103
cp -r /etc/ssh /ssh_orig && \
102104
rm -rf /etc/ssh/* && \
103-
rm -rf /etc/xrdp/rsakeys.ini /etc/xrdp/*.pem
105+
rm -rf /etc/xrdp/rsakeys.ini /etc/xrdp/*.pem && \
106+
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
104107

105108
# Docker config
106109
VOLUME ["/etc/ssh","/home"]

0 commit comments

Comments
 (0)