From 55f076382ea6dd715f7e326e98c093c502da1a28 Mon Sep 17 00:00:00 2001 From: Amir Raminfar Date: Tue, 31 Oct 2023 15:11:15 -0700 Subject: [PATCH] fix: fixes not being able to create /data dir (#2463) --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d8871829..31a0d67f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -46,11 +46,12 @@ ARG TARGETOS TARGETARCH # Build binary RUN GOOS=$TARGETOS GOARCH=$TARGETARCH CGO_ENABLED=0 go build -ldflags "-s -w -X main.version=$TAG" -o dozzle +RUN mkdir /data FROM scratch ENV PATH /bin - +COPY --from=builder /data /data COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt COPY --from=builder /dozzle/dozzle /dozzle