fix missing tmp directory in docker image (#1069)

This commit is contained in:
slothful-vassal
2026-06-27 11:26:14 +02:00
committed by GitHub
parent 485ec53f6d
commit da9f0cd31d

View File

@@ -36,11 +36,13 @@ COPY . .
RUN go mod download RUN go mod download
RUN CGO_ENABLED=0 go build -ldflags="-s -w" -o /app/pocketbase RUN CGO_ENABLED=0 go build -ldflags="-s -w" -o /app/pocketbase
RUN install -d -m 1777 /rootfs/tmp
FROM scratch FROM scratch
WORKDIR / WORKDIR /
COPY --from=build /rootfs/ /
COPY --from=build /app/pocketbase /pocketbase COPY --from=build /app/pocketbase /pocketbase
COPY --from=build /etc/ssl/certs /etc/ssl/certs COPY --from=build /etc/ssl/certs /etc/ssl/certs
COPY --from=download-env /tmp/curl /curl COPY --from=download-env /tmp/curl /curl