From 65950687edb611c7e4007f73e438b517cc74d8d7 Mon Sep 17 00:00:00 2001 From: Blallo Date: Wed, 20 Mar 2019 18:06:24 +0100 Subject: [PATCH] Added development dockerfile. --- .dockerignore | 1 + Dockerfile | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile 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 []