From 17844d88ae7f42069f4b13b21a5757fbee5d22bf Mon Sep 17 00:00:00 2001 From: Dexafree Date: Fri, 2 Mar 2018 16:45:45 +0100 Subject: [PATCH] Added Dockerfile --- Dockerfile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..37426bd --- /dev/null +++ b/Dockerfile @@ -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"]