We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 553a8c1 commit aba2be8Copy full SHA for aba2be8
1 file changed
Dockerfile
@@ -4,15 +4,14 @@ WORKDIR /build
4
COPY go.mod go.sum ./
5
RUN go mod download
6
COPY ./ ./
7
+ENV CGO_ENABLED=0
8
RUN go build -ldflags "-w -s" -trimpath -o speedtest .
9
-FROM alpine:3.16
10
-RUN apk add --no-cache ca-certificates
+FROM scratch
11
WORKDIR /app
12
COPY --from=build_base /build/speedtest ./
13
COPY settings.toml ./
14
15
-USER nobody
16
EXPOSE 8989
17
18
CMD ["./speedtest"]
0 commit comments