We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d99f14 commit 4c5e500Copy full SHA for 4c5e500
1 file changed
backend/Dockerfile
@@ -1,27 +1,20 @@
1
# Build stage
2
-
3
FROM golang:1.25 AS build-stage
4
5
WORKDIR /app
6
7
COPY ./server/go.mod ./server/go.sum ./
8
9
RUN go mod download
10
11
COPY ./server/ .
12
13
RUN CGO_ENABLED=0 GOOS=linux go build -o /fops-server cmd/main.go
14
15
-# Build Deployment stage
16
17
-FROM gcr.io/distroless/base-debian11 AS build-release-stage
18
+# Deployment
+FROM gcr.io/distroless/base-debian12
19
WORKDIR /
20
21
COPY --from=build-stage /fops-server /fops-server
22
23
-EXPOSE 8080
24
25
USER nonroot:nonroot
+EXPOSE 8080
26
27
-ENTRYPOINT ["./fops-server"]
+ENTRYPOINT ["/fops-server"]
0 commit comments