Update Dockerfile (#36)

update alpine to 3.15 (same as golang:alpine)
This commit is contained in:
Sean McAvoy 2022-01-18 02:46:15 -05:00 committed by GitHub
parent 158e37d3ae
commit 281aff1725
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,7 @@ RUN apk add --no-cache git gcc ca-certificates libc-dev \
WORKDIR /go/src/github.com/librespeed/speedtest-go WORKDIR /go/src/github.com/librespeed/speedtest-go
RUN go get ./ && go build -ldflags "-w -s" -trimpath -o speedtest main.go RUN go get ./ && go build -ldflags "-w -s" -trimpath -o speedtest main.go
FROM alpine:3.9 FROM alpine:3.15
RUN apk add ca-certificates RUN apk add ca-certificates
WORKDIR /app WORKDIR /app
COPY --from=build_base /go/src/github.com/librespeed/speedtest-go/speedtest . COPY --from=build_base /go/src/github.com/librespeed/speedtest-go/speedtest .