mirror of
https://github.com/go-shiori/shiori.git
synced 2024-11-16 14:16:29 +08:00
17 lines
366 B
Text
17 lines
366 B
Text
|
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"]
|