shiori/Dockerfile

14 lines
275 B
Docker
Raw Normal View History

2020-08-11 22:51:30 +00:00
# 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/
2019-09-21 10:09:03 +00:00
ENV SHIORI_DIR /srv/shiori/
EXPOSE 8080
2020-08-11 22:51:30 +00:00
CMD ["/usr/local/bin/shiori", "serve"]