Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: missing timezone file in alpine (#1612)

h3n4lf054d3b324f2
diff --git a/Dockerfile b/Dockerfile
index 0ac9f1b33c..ec8ae5163a 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -63,6 +63,11 @@ LABEL org.opencontainers.image.revision=${GIT_COMMIT}
LABEL org.opencontainers.image.created=${BUILD_TIME}
LABEL org.opencontainers.image.authors=${BUILD_USER}
+# We need copy timezone file from backend layer.
+# Otherwise, clickhouse cannot be connected due to the missing time zone file in alpine.
+COPY --from=backend /usr/local/go/lib/time/zoneinfo.zip /opt/zoneinfo.zip
+ENV ZONEINFO /opt/zoneinfo.zip
+
COPY --from=backend /backend-build/bytebase /usr/local/bin/
# Copy utility scripts, we have