That's the reason why I need to use apt-get update and apt-get install -yq tzdata firstly on my Dockerfile when using the Ubuntu 20.04 for my Docker base image.
Of course, we can simplify my Dockerfile when using the Ubuntu to be the Docker base image:
FROM ubuntu:20.04
RUN apt-get update && \
apt-get install -yq tzdata
ENV TZ="Asia/Taipei"
That's the reason why I need to use
apt-get update
andapt-get install -yq tzdata
firstly on myDockerfile
when using theUbuntu 20.04
for my Docker base image.Of course, we can simplify my
Dockerfile
when using theUbuntu
to be the Docker base image:Got it, thanks for the awesome explanation. 👍