mirror of
https://github.com/go-shiori/shiori.git
synced 2025-09-08 14:05:54 +08:00
13 lines
275 B
Docker
13 lines
275 B
Docker
# build stage
|
|
FROM golang:alpine AS builder
|
|
RUN apk add --no-cache build-base
|
|
WORKDIR /src
|
|
COPY . .
|
|
RUN go build
|
|
|
|
# server image
|
|
FROM golang:alpine
|
|
COPY --from=builder /src/shiori /usr/local/bin/
|
|
ENV SHIORI_DIR /srv/shiori/
|
|
EXPOSE 8080
|
|
CMD ["/usr/local/bin/shiori", "serve"]
|