From da86271fbd2cad66f240f388edfafc1033e55d83 Mon Sep 17 00:00:00 2001 From: scoiatael Date: Tue, 7 Mar 2017 09:58:15 +0100 Subject: [PATCH] Dockerfile --- Dockerfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..28945d6 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM golang:1.8 +ENV HOME /opt/app +ENV GOPATH $HOME +ENV PATH $GOPATH/bin:$PATH +RUN go get github.com/tools/godep +RUN mkdir -p $HOME/src/github.com/scoiatael/ +COPY . $HOME/src/github.com/scoiatael/archai + +WORKDIR $HOME/src/github.com/scoiatael/archai +RUN godep restore +RUN go install github.com/scoiatael/archai +EXPOSE 8080 +ENTRYPOINT ["archai"]