diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..0d8de4c --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +/Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..7ec7aa3 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM golang:1.12 + +ENV GOOS=linux +ENV CGO_ENABLED=0 + +RUN mkdir -p $GOPATH/src/git.lattuga.net/boyska/circolog/ +COPY . $GOPATH/src/git.lattuga.net/boyska/circolog/ +RUN go get git.lattuga.net/boyska/circolog/... + +VOLUME [$GOPATH"/bin"] + +ENTRYPOINT ["/go/bin/circologd"] +CMD []