Fixed the issue related to the timezones. Removed the tz setup inside the image. Now the host machine will set the tz. Also added a new variable USER_COMMAND_SETUP which will run after the SYS_COMMAND_INIT.
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
@@ -4,7 +4,6 @@ FROM ubuntu:${UBUNTU_VER}
|
||||
|
||||
ARG TARGETPLATFORM
|
||||
|
||||
ENV TZ=Asia/Hong_Kong
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
# Enable autocompletion
|
||||
@@ -21,10 +20,6 @@ RUN apt install -y net-tools iputils-ping tcpdump traceroute iproute2 iptables i
|
||||
|
||||
RUN apt install -y software-properties-common
|
||||
|
||||
RUN apt install -y tzdata && \
|
||||
ln -fs /usr/share/zoneinfo/$TZ /etc/localtime && \
|
||||
dpkg-reconfigure --frontend noninteractive tzdata
|
||||
|
||||
# Installing locales
|
||||
RUN apt install -y locales
|
||||
ENV LC_ALL=en_US.UTF-8
|
||||
@@ -39,6 +34,6 @@ COPY scripts/entrypoint.sh /entrypoint.sh
|
||||
ENV LOG_FILE=/dev/null
|
||||
|
||||
# Reset DEBIAN_FRONTEND
|
||||
ENV DEBIAN_FRONTEND=dialog
|
||||
ENV DEBIAN_FRONTEND=""
|
||||
|
||||
CMD [ "/entrypoint.sh" ]
|
||||
|
||||
Reference in New Issue
Block a user