Skip to content

Commit e46657e

Browse files
Update Dockerfile
1 parent c7512d6 commit e46657e

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
@@ -43,6 +43,7 @@ RUN cp src/.libs/*.so /tmp/so
4343
FROM kalilinux/kali-rolling
4444
ARG ADDITIONAL_PACKAGES=""
4545
ENV ADDITIONAL_PACKAGES=${ADDITIONAL_PACKAGES}
46+
ENV TZ="Etc/UTC"
4647
ENV DEBIAN_FRONTEND noninteractive
4748
RUN apt update && apt -y full-upgrade && apt install -y \
4849
ca-certificates \
@@ -63,6 +64,7 @@ RUN apt update && apt -y full-upgrade && apt install -y \
6364
xorgxrdp \
6465
xprintidle \
6566
xrdp \
67+
tzdata \
6668
$ADDITIONAL_PACKAGES && \
6769
apt-get remove -yy xscreensaver && \
6870
apt-get autoremove -yy && \
@@ -88,7 +90,8 @@ RUN cp /etc/X11/xrdp/xorg.conf /etc/X11 && \
8890
echo "xfce4-session" >> /etc/skel/.Xclients && \
8991
cp -r /etc/ssh /ssh_orig && \
9092
rm -rf /etc/ssh/* && \
91-
rm -rf /etc/xrdp/rsakeys.ini /etc/xrdp/*.pem
93+
rm -rf /etc/xrdp/rsakeys.ini /etc/xrdp/*.pem && \
94+
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
9295

9396
# Docker config
9497
VOLUME ["/etc/ssh","/home"]

0 commit comments

Comments
 (0)