diff options
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..bf5fd8e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,23 @@ +FROM 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 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 + +CMD ["todolist", "web"] + +EXPOSE 7890 + + |
