Skip to content

Commit 2ef18f9

Browse files
committed
fix(ci): Dockerfile static server
1 parent af431bc commit 2ef18f9

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

apps/static-server/Dockerfile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
# Build stage
21
FROM golang:1.25.2-alpine AS builder
32

4-
RUN apk add --no-cache git
3+
RUN apk add --no-cache git ca-certificates
54

65
WORKDIR /app
76

@@ -15,12 +14,11 @@ RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o static-server ./c
1514
# Final stage
1615
FROM alpine:latest
1716

18-
RUN apk --no-cache add ca-certificates
19-
2017
WORKDIR /root/
2118

2219
COPY --from=builder /app/static-server .
20+
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
2321

2422
EXPOSE 8080
2523

26-
CMD ["./static-server"]
24+
CMD ["./static-server"]

0 commit comments

Comments
 (0)