Skip to content

Commit

Permalink
Remove golang from final image
Browse files Browse the repository at this point in the history
  • Loading branch information
n8225 committed Feb 6, 2022
1 parent 50ecb90 commit 748b306
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 748b306

Please sign in to comment.