Dockerfile
# create image from the official Go image
FROM golang:alpine
RUN apk add --update tzdata \
bash wget curl git nano;
# Create binary directory,install glide and fresh
RUN mkdir -p $$GOPATH/bin && \
# curl https://glide.sh/get | sh && \
# go get github.com/pilu/fresh && \
curl -fLo ~/.air https://raw.githubusercontent.com/cosmtrek/air/master/bin/linux/air && \
chmod +x ~/.air
# define work directory
ADD . /go/src/app
WORKDIR /go/src/app
# serve the app1
CMD ~/.air -c air.conf
RUN chmod -R 0777 $GOPATH/src