shiori/Dockerfile

19 lines
379 B
Text
Raw Normal View History

2018-03-02 23:45:45 +08:00
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
2018-03-03 00:00:30 +08:00
EXPOSE 8080
2018-03-02 23:45:45 +08:00
CMD ["shiori", "serve"]