Skip to content

Commit

Permalink
Merge pull request go-shiori#341 from n8225/updateDockerfile
Browse files Browse the repository at this point in the history
Remove golang from final docker image
  • Loading branch information
fmartingr authored Feb 7, 2022
2 parents 50ecb90 + 748b306 commit cf88489
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit cf88489

Please sign in to comment.