2017-03-03 13:43:35 -07:00
|
|
|
FROM golang:1.8
|
2014-12-17 21:40:08 -07:00
|
|
|
|
2015-01-08 16:53:37 -07:00
|
|
|
RUN apt-get update && apt-get install --no-install-recommends -y -q build-essential git
|
2014-12-17 21:40:08 -07:00
|
|
|
|
2015-01-24 08:40:49 -07:00
|
|
|
# golang puts its go install here (weird but true)
|
2015-09-16 19:19:51 -06:00
|
|
|
ENV GOROOT_BOOTSTRAP /usr/local/go
|
2015-01-24 08:40:49 -07:00
|
|
|
|
2017-03-03 13:43:35 -07:00
|
|
|
RUN go get -d golang.org/x/crypto/acme/autocert
|
|
|
|
|
2015-01-08 16:53:37 -07:00
|
|
|
# golang sets GOPATH=/go
|
2015-09-16 19:19:51 -06:00
|
|
|
ADD . /go/src/tip
|
|
|
|
RUN go install tip
|
|
|
|
ENTRYPOINT ["/go/bin/tip"]
|
2017-03-03 13:43:35 -07:00
|
|
|
# App Engine expects us to listen on port 8080
|
2016-04-21 21:40:43 -06:00
|
|
|
EXPOSE 8080
|