Add Dockerfile

This commit is contained in:
Radhi Fadlillah 2019-09-21 17:09:03 +07:00
parent 2eb6415fa8
commit 620228e85b
1 changed files with 17 additions and 0 deletions

17
Dockerfile Normal file
View File

@ -0,0 +1,17 @@
FROM golang:1.13-alpine as builder
RUN apk update && apk --no-cache add git build-base
RUN go get -u -v github.com/go-shiori/shiori
# ========== END OF BUILDER ========== #
FROM alpine:latest
RUN apk update && apk --no-cache add dumb-init ca-certificates
COPY --from=builder /go/bin/shiori /usr/local/bin/shiori
ENV SHIORI_DIR /srv/shiori/
EXPOSE 8080
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
CMD ["/usr/local/bin/shiori", "serve"]