Last active
August 12, 2021 21:14
-
-
Save Navaneethsen/55e5af631c7abe443a90533220ab2c66 to your computer and use it in GitHub Desktop.
[Dockerfile] Set timezone in alpine image
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| RUN apk update | |
| RUN apk upgrade | |
| RUN apk add ca-certificates && update-ca-certificates | |
| RUN apk add --update tzdata | |
| ENV TZ Africa/Johannesburg | |
| RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone | |
| RUN rm -rf /var/cache/apk/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment