Skip to content

Instantly share code, notes, and snippets.

@5hay
Last active June 8, 2020 06:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 5hay/a97816bd9da723a9d6dabdc7f816eea7 to your computer and use it in GitHub Desktop.
Save 5hay/a97816bd9da723a9d6dabdc7f816eea7 to your computer and use it in GitHub Desktop.
Shiori Bookmark Manager Raspberry Pi Dockerfile
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