aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile17
1 files changed, 4 insertions, 13 deletions
diff --git a/Dockerfile b/Dockerfile
index bf5fd8e..12194dc 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,23 +1,14 @@
-FROM alpine
+FROM golang:alpine
MAINTAINER Quey-Liang Kao <s101062801@m101.nthu.edu.tw>
# Last Modified: 2017/01/21
-ENV PATH /bin:/sbin:/usr/bin
-
-RUN apk update \
- && apk add go git
+RUN apk update && apk add git
RUN mkdir -p /src/github.com/gammons/
-RUN git clone https://github.com/gammons/todolist.git \
- && mv todolist /src/github.com/gammons/
-
-ENV GOPATH /
-
-RUN go install github.com/gammons/todolist
+RUN go-wrapper download github.com/gammons/todolist
+RUN go-wrapper install github.com/gammons/todolist
CMD ["todolist", "web"]
EXPOSE 7890
-
-