Dockerfile.build 314 B

123456789101112
  1. FROM golang:1.9.3-alpine
  2. RUN apk update && apk upgrade && apk add --no-cache bash git
  3. RUN go get github.com/iris-contrib/cloud-native-go
  4. ENV SOURCES /go/src/github.com/iris-contrib/cloud-native-go
  5. # COPY . ${SOURCES}
  6. RUN cd ${SOURCES} $$ CGO_ENABLED=0 go build
  7. ENTRYPOINT cloud-native-go
  8. EXPOSE 8080