mirror of
https://github.com/go-shiori/shiori.git
synced 2025-12-11 06:26:03 +08:00
Added Dockerfile
This commit is contained in:
parent
236f86562a
commit
17844d88ae
1 changed files with 16 additions and 0 deletions
16
Dockerfile
Normal file
16
Dockerfile
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
FROM golang:1.10.0-alpine3.7
|
||||||
|
|
||||||
|
WORKDIR /go/src/shiori
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
# Install git and gcc
|
||||||
|
# Get dependencies
|
||||||
|
# Install dependencies
|
||||||
|
# Create shiori.db as a file, so in case that the file
|
||||||
|
# is mounted with -v, a folder will not be created
|
||||||
|
RUN apk --no-cache add git build-base \
|
||||||
|
&& go get -d -v ./... \
|
||||||
|
&& go install -v ./... \
|
||||||
|
&& touch shiori.db
|
||||||
|
|
||||||
|
CMD ["shiori", "serve"]
|
||||||
Loading…
Add table
Reference in a new issue