Skip to content

Instantly share code, notes, and snippets.

@Navaneethsen
Last active August 12, 2021 21:14
Show Gist options
  • Select an option

  • Save Navaneethsen/55e5af631c7abe443a90533220ab2c66 to your computer and use it in GitHub Desktop.

Select an option

Save Navaneethsen/55e5af631c7abe443a90533220ab2c66 to your computer and use it in GitHub Desktop.
[Dockerfile] Set timezone in alpine image
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