mirror of
https://github.com/go-shiori/shiori.git
synced 2025-01-15 12:27:43 +08:00
15 lines
396 B
Docker
15 lines
396 B
Docker
# build stage
|
|
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
|
|
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
|
|
ENTRYPOINT ["/usr/local/bin/shiori"]
|
|
CMD ["serve"]
|