We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af431bc commit 2ef18f9Copy full SHA for 2ef18f9
apps/static-server/Dockerfile
@@ -1,7 +1,6 @@
1
-# Build stage
2
FROM golang:1.25.2-alpine AS builder
3
4
-RUN apk add --no-cache git
+RUN apk add --no-cache git ca-certificates
5
6
WORKDIR /app
7
@@ -15,12 +14,11 @@ RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o static-server ./c
15
14
# Final stage
16
FROM alpine:latest
17
18
-RUN apk --no-cache add ca-certificates
19
-
20
WORKDIR /root/
21
22
COPY --from=builder /app/static-server .
+COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
23
24
EXPOSE 8080
25
26
-CMD ["./static-server"]
+CMD ["./static-server"]
0 commit comments