Created
August 7, 2022 08:55
-
-
Save gh640/78d586f0cf758afc64e583e3eb21296f to your computer and use it in GitHub Desktop.
サンプル: Docker の `debian:bullseye` イメージでタイムゾーンを JST に変更する
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
| FROM debian:bullseye | |
| # tzdata はすでに入っているので dpkg-reconfigure がそのまま使える | |
| RUN ln -sf /usr/share/zoneinfo/Asia/Tokyo /etc/localtime && \ | |
| dpkg-reconfigure --frontend noninteractive tzdata |
Author
Author
debian:bullseye-slim の場合も同じです。
FROM debian:bullseye-slim
# tzdata はすでに入っているので dpkg-reconfigure がそのまま使える
RUN ln -sf /usr/share/zoneinfo/Asia/Tokyo /etc/localtime && \
dpkg-reconfigure --frontend noninteractive tzdata
Author
debian:bookworm-slim の場合も同じです。
FROM debian:bookworm-slim
# tzdata はすでに入っているので dpkg-reconfigure がそのまま使える
RUN ln -sf /usr/share/zoneinfo/Asia/Tokyo /etc/localtime && \
dpkg-reconfigure --frontend noninteractive tzdata
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
debian:bookwormの場合も同じです。