Last active
June 8, 2020 06:59
-
-
Save 5hay/a97816bd9da723a9d6dabdc7f816eea7 to your computer and use it in GitHub Desktop.
Shiori Bookmark Manager Raspberry Pi Dockerfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM arm32v7/golang:1.10-stretch as builder | |
RUN apt-get update \ | |
&& apt-get install -y git dumb-init ca-certificates | |
WORKDIR /go | |
COPY . . | |
RUN go get -d -v github.com/RadhiFadlillah/shiori | |
RUN go build -v -x -o /go/src/github.com/RadhiFadlillah/shiori/shiori /go/src/github.com/RadhiFadlillah/shiori/main.go | |
ENV ENV_SHIORI_DB /srv/shiori.db | |
RUN cp /go/src/github.com/RadhiFadlillah/shiori/shiori /usr/local/bin/shiori | |
WORKDIR /srv/ | |
RUN touch shiori.db | |
EXPOSE 8080 | |
ENTRYPOINT ["/usr/bin/dumb-init", "--"] | |
CMD ["/usr/local/bin/shiori", "serve"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment