From 11a70b6e7632749bb09200d01a33cf892cc50f5a Mon Sep 17 00:00:00 2001 From: video-prize-ranch Date: Sat, 19 Mar 2022 15:58:12 -0400 Subject: [PATCH] Switch to scratch image --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 68cbd3c..57524fd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,15 +1,16 @@ FROM golang:alpine AS build WORKDIR /src -RUN apk --no-cache add git +RUN apk --no-cache add git ca-certificates RUN git clone https://codeberg.org/video-prize-ranch/rimgo . RUN go mod download -RUN go build +RUN CGO_ENABLED=0 go build -FROM alpine:latest as bin +FROM scratch as bin WORKDIR /app +COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ COPY --from=build /src/rimgo . EXPOSE 3000