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