diff options
| author | Michael Strùˆder <mikezter@gmail.com> | 2017-04-29 15:21:08 +0200 |
|---|---|---|
| committer | Michael Strùˆder <mikezter@gmail.com> | 2017-04-29 15:21:08 +0200 |
| commit | 0a1ba3e148da5dc970af1542e4334ad0c635857b (patch) | |
| tree | 75a529a02a420109057fa5f9db13ff59a4d864f7 | |
| parent | 0192445ebc98afc7d31b6784080496fd7085d4b3 (diff) | |
base Dockerfile on official golang:alpine image
This frees us from having to deal with build issues like #56.
| -rw-r--r-- | Dockerfile | 17 |
1 files changed, 4 insertions, 13 deletions
@@ -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 - - |
