From 748b3065639cdb89abb3989b6ee68b214358b0aa Mon Sep 17 00:00:00 2001 From: Nathan W Rew Date: Sun, 6 Feb 2022 09:38:02 -0600 Subject: [PATCH] Remove golang from final image --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index a6580b702..3296f489e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,13 @@ # build stage -FROM golang:alpine AS builder +FROM ghcr.io/ghcri/golang:1.17-alpine3.15 AS builder RUN apk add --no-cache build-base WORKDIR /src COPY . . RUN go build # server image -FROM golang:alpine +LABEL org.opencontainers.image.source https://github.com/go-shiori/shiori +FROM ghcr.io/ghcri/alpine:3.15 COPY --from=builder /src/shiori /usr/local/bin/ ENV SHIORI_DIR /srv/shiori/ EXPOSE 8080