Adjustments for docker image to comply with update step

This commit is contained in:
Florian Baumann 2025-12-03 08:52:39 +01:00
parent 806137de61
commit f75888a1a9

View File

@ -1,6 +1,6 @@
FROM golang:1.25-alpine AS builder FROM golang:1.25-alpine AS build
RUN apk update && apk add --no-cache git RUN apk update && apk add --no-cache git ca-certificates curl
WORKDIR /go/src/app WORKDIR /go/src/app
COPY pkg /go/src/app/pkg COPY pkg /go/src/app/pkg
@ -16,7 +16,9 @@ RUN go build -ldflags "-X github.com/noqqe/serra/pkg/serra.Version=`git describe
# copy # copy
FROM scratch FROM scratch
WORKDIR /go/src/app WORKDIR /go/src/app
COPY --from=builder /go/src/app/serra /go/src/app/serra COPY --from=build /go/src/app/serra /go/src/app/serra
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=build /tmp /tmp
COPY templates /go/src/app/templates COPY templates /go/src/app/templates
# run # run