Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please add the tzdata package to all golang:alpine images, making it convenient to set the timezone using TZ=UTC. #477

Closed
himonster1 opened this issue Jul 21, 2023 · 4 comments

Comments

@himonster1
Copy link

tzdata is included by default in Debian systems, but it is not included in Alpine.

@tianon
Copy link
Member

tianon commented Jul 24, 2023

See https://hub.docker.com/_/golang, especially:

To minimize image size, additional related tools (such as git, gcc, or bash) are not included in Alpine-based images. Using this image as a base, add the things you need in your own Dockerfile (see the alpine image description for examples of how to install packages if you are unfamiliar). See also docker-library/golang#250 (comment) for a longer explanation.

@tianon
Copy link
Member

tianon commented Jul 24, 2023

I'll also note that we don't intentionally install tzdata in the Debian-based variants -- it is included because it is part of the base image we're FROM (and if it were to remove it, we would no longer include it).

@himonster1
Copy link
Author

Thanks, but you seem to have misunderstood me, I want tzdata installed, I need it, I need tzdata

@tianon
Copy link
Member

tianon commented Jul 27, 2023

Right, sorry for not being more clear; I'm suggesting you should RUN apk add --no-cache tzdata in your own Dockerfile -- our not including tzdata is intentional, and we do not plan to change that.

@tianon tianon closed this as completed Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants