aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrant Ammons <gammons@gmail.com>2017-05-03 09:53:56 -0400
committerGitHub <noreply@github.com>2017-05-03 09:53:56 -0400
commit6cb4a95af8bc4a8348c7b115fba334e668fe95e5 (patch)
treec3c64df31c5a0ba14f1dba15c70e7aba0b4dd499
parent4910e131eb1cd7b604123c9d9d49946b10351a4a (diff)
parent708c7ab7e53e54f340fdd69acbbb12b54608156e (diff)
Merge pull request #57 from mikezter/golang-alpine
Golang alpine
-rw-r--r--Dockerfile19
1 files changed, 5 insertions, 14 deletions
diff --git a/Dockerfile b/Dockerfile
index bf5fd8e..65a399e 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,23 +1,14 @@
-FROM alpine
-MAINTAINER Quey-Liang Kao <s101062801@m101.nthu.edu.tw>
-# Last Modified: 2017/01/21
+FROM golang:alpine
-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-wrapper download github.com/gammons/todolist
+RUN go-wrapper install github.com/gammons/todolist
-RUN go install github.com/gammons/todolist
+RUN ln -s /.todos.json $HOME/.todos.json
CMD ["todolist", "web"]
EXPOSE 7890
-
-