diff --git a/Dockerfile b/Dockerfile index 954ede7..980d018 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM --platform=${BUILDPLATFORM} golang:alpine as builder -RUN apk add --no-cache make git ca-certificates tzdata && \ +RUN apk add --no-cache make git ca-certificates && \ wget -O /Country.mmdb https://github.com/Dreamacro/maxmind-geoip/releases/latest/download/Country.mmdb WORKDIR /workdir COPY --from=tonistiigi/xx:golang / / @@ -15,7 +15,6 @@ RUN --mount=target=. \ FROM alpine:latest LABEL org.opencontainers.image.source="https://github.com/Dreamacro/clash" -COPY --from=builder /usr/share/zoneinfo /usr/share/zoneinfo COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ COPY --from=builder /Country.mmdb /root/.config/clash/ COPY --from=builder /clash / diff --git a/main.go b/main.go index 55dd5eb..915d8b3 100644 --- a/main.go +++ b/main.go @@ -8,6 +8,7 @@ import ( "path/filepath" "runtime" "syscall" + _ "time/tzdata" "github.com/Dreamacro/clash/config" C "github.com/Dreamacro/clash/constant"