fix: include timezone data in runtime image
This commit is contained in:
@@ -21,6 +21,7 @@ RUN CGO_ENABLED=0 GOOS=linux go build -o /out/im_workbench ./cmd/workbench
|
||||
FROM alpine:3.22
|
||||
|
||||
WORKDIR /app
|
||||
RUN apk add --no-cache tzdata
|
||||
ENV WORKBENCH_CONFIG=/app/configs/workbench.test.json
|
||||
COPY --from=builder /out/im_workbench /app/im_workbench
|
||||
COPY configs /app/configs
|
||||
|
||||
@@ -23,6 +23,11 @@ class DeploymentContractTest(unittest.TestCase):
|
||||
self.assertIn("COPY --from=web-builder /web/dist /app/web/dist", dockerfile)
|
||||
self.assertIn("EXPOSE 6061", dockerfile)
|
||||
|
||||
def test_runtime_image_includes_timezone_database_for_mysql_dsn(self):
|
||||
dockerfile = (ROOT / "Dockerfile").read_text()
|
||||
|
||||
self.assertIn("RUN apk add --no-cache tzdata", dockerfile)
|
||||
|
||||
def test_docker_context_excludes_local_artifacts(self):
|
||||
entries = {
|
||||
line.strip()
|
||||
|
||||
Reference in New Issue
Block a user