Skip to content

Commit f75888a

Browse files
committed
Adjustments for docker image to comply with update step
1 parent 806137d commit f75888a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
FROM golang:1.25-alpine AS builder
1+
FROM golang:1.25-alpine AS build
22

3-
RUN apk update && apk add --no-cache git
3+
RUN apk update && apk add --no-cache git ca-certificates curl
44

55
WORKDIR /go/src/app
66
COPY pkg /go/src/app/pkg
@@ -16,7 +16,9 @@ RUN go build -ldflags "-X github.com/noqqe/serra/pkg/serra.Version=`git describe
1616
# copy
1717
FROM scratch
1818
WORKDIR /go/src/app
19-
COPY --from=builder /go/src/app/serra /go/src/app/serra
19+
COPY --from=build /go/src/app/serra /go/src/app/serra
20+
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
21+
COPY --from=build /tmp /tmp
2022
COPY templates /go/src/app/templates
2123

2224
# run

0 commit comments

Comments
 (0)