mirror of https://github.com/fmartingr/shiori.git
bug: Docker build
This commit is contained in:
parent
4ff6ddd65a
commit
83e3621af6
24
Dockerfile
24
Dockerfile
|
@ -1,17 +1,13 @@
|
||||||
FROM golang:1.13-alpine as builder
|
# build stage
|
||||||
|
FROM golang:alpine AS builder
|
||||||
RUN apk update && apk --no-cache add git build-base
|
RUN apk add --no-cache build-base
|
||||||
RUN go get -u -v github.com/go-shiori/shiori
|
WORKDIR /src
|
||||||
|
COPY . .
|
||||||
# ========== END OF BUILDER ========== #
|
RUN go build
|
||||||
|
|
||||||
FROM alpine:latest
|
|
||||||
|
|
||||||
RUN apk update && apk --no-cache add dumb-init ca-certificates
|
|
||||||
COPY --from=builder /go/bin/shiori /usr/local/bin/shiori
|
|
||||||
|
|
||||||
|
# server image
|
||||||
|
FROM golang:alpine
|
||||||
|
COPY --from=builder /src/shiori /usr/local/bin/
|
||||||
ENV SHIORI_DIR /srv/shiori/
|
ENV SHIORI_DIR /srv/shiori/
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
CMD ["/usr/local/bin/shiori", "serve"]
|
||||||
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
|
|
||||||
CMD ["/usr/local/bin/shiori", "serve"]
|
|
||||||
|
|
Loading…
Reference in New Issue