We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 93fdf50 + 95ab0be commit d801cc0Copy full SHA for d801cc0
Dockerfile
@@ -1,12 +1,13 @@
1
-FROM golang AS build
+FROM golang:bullseye AS build
2
WORKDIR /app
3
+RUN apt-get update && apt-get install upx -y
4
COPY go.* /app/
5
RUN go mod download
6
COPY . .
-RUN go build -ldflags="-s -w" -o telescan
7
+ENV CGO_ENABLED=0
8
+RUN go build -o telescan
9
+RUN upx telescan
10
-FROM debian:bookworm-slim AS run
-RUN apt-get update && apt-get install -y ca-certificates
-RUN rm -rf /var/lib/apt/lists/*
11
+FROM gcr.io/distroless/static-debian11
12
COPY --from=build /app/telescan /telescan
13
ENTRYPOINT ["/telescan"]
0 commit comments