Skip to content

Commit 4c5e500

Browse files
committed
fix: fixed TLS Certificate missing in distroless image
1 parent 2d99f14 commit 4c5e500

1 file changed

Lines changed: 4 additions & 11 deletions

File tree

backend/Dockerfile

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,20 @@
11
# Build stage
2-
32
FROM golang:1.25 AS build-stage
4-
53
WORKDIR /app
64

75
COPY ./server/go.mod ./server/go.sum ./
8-
96
RUN go mod download
107

118
COPY ./server/ .
12-
139
RUN CGO_ENABLED=0 GOOS=linux go build -o /fops-server cmd/main.go
1410

15-
# Build Deployment stage
16-
17-
FROM gcr.io/distroless/base-debian11 AS build-release-stage
18-
11+
# Deployment
12+
FROM gcr.io/distroless/base-debian12
1913
WORKDIR /
2014

2115
COPY --from=build-stage /fops-server /fops-server
2216

23-
EXPOSE 8080
24-
2517
USER nonroot:nonroot
18+
EXPOSE 8080
2619

27-
ENTRYPOINT ["./fops-server"]
20+
ENTRYPOINT ["/fops-server"]

0 commit comments

Comments
 (0)