Skip to content

Commit 3ad32f7

Browse files
committed
updating the dockerfile withtzdata
1 parent 97220ed commit 3ad32f7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

npm/linux.Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ RUN CGO_ENABLED=0 go build -v -o /usr/local/bin/azure-npm -ldflags "-X main.vers
88

99
FROM mcr.microsoft.com/mirror/docker/library/ubuntu:20.04 as linux
1010
COPY --from=builder /usr/local/bin/azure-npm /usr/bin/azure-npm
11-
RUN apt-get update && apt-get install -y iptables ipset ca-certificates strace gdb build-essential && apt-get autoremove -y && apt-get clean
11+
12+
RUN ln -fs /usr/share/zoneinfo/Etc/UTC /etc/localtime && \
13+
apt-get update && \
14+
apt-get install -y --no-install-recommends tzdata && apt-get update && apt-get install -y iptables ipset ca-certificates strace gdb build-essential && apt-get autoremove -y && apt-get clean
15+
1216
RUN chmod +x /usr/bin/azure-npm
1317
ENTRYPOINT ["/usr/bin/azure-npm", "start"]

0 commit comments

Comments
 (0)