Skip to content

Commit 5f76449

Browse files
authored
Add tzdata package to Alpine image
Add tzdata package to Alpine image to be able to set the timezone inside the container
1 parent 22a335e commit 5f76449

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile-alpine

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ FROM alpine:latest
55
# - OpenSSH needs /var/run/sshd to run
66
# - Remove generic host keys, entrypoint generates unique keys
77
RUN echo "@community http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && \
8-
apk add --no-cache bash shadow@community openssh-server-pam openssh-sftp-server && \
8+
apk add --no-cache bash shadow@community openssh-server-pam openssh-sftp-server tzdata && \
99
ln -s /usr/sbin/sshd.pam /usr/sbin/sshd && \
1010
mkdir -p /var/run/sshd && \
1111
rm -f /etc/ssh/ssh_host_*key*

0 commit comments

Comments
 (0)