fix(docker): Switch to alpine baseimage for temp file support
All checks were successful
Build release images / build-container (push) Successful in 4m15s
Build latest image / build-container (push) Successful in 4m22s

This commit is contained in:
Nicolai Ort 2025-05-01 18:24:12 +02:00
parent 92380802e9
commit c48a1f855f
Signed by: niggl
GPG Key ID: 13AFA55AF62F269F

View File

@ -8,8 +8,9 @@ RUN go mod download
COPY . . COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o server RUN CGO_ENABLED=0 GOOS=linux go build -o server
FROM scratch FROM alpine:3.18
RUN mkdir -p /tmp && chmod 1777 /tmp
COPY --from=builder /app/server /server COPY --from=builder /app/server /server
COPY static /static COPY static /static
ADD https://curl.haxx.se/ca/cacert.pem /etc/ssl/certs/ca-certificates.crt
ENTRYPOINT [ "/server" ] ENTRYPOINT [ "/server" ]