Skip to content

Commit

Permalink
fix: fixes not being able to create /data dir (#2463)
Browse files Browse the repository at this point in the history
  • Loading branch information
amir20 authored Oct 31, 2023
1 parent cae8f27 commit 55f0763
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 55f0763

Please sign in to comment.