Dockerfile 689 B

1234567891011121314151617181920212223242526
  1. FROM golang:1.11.1-alpine AS build
  2. ENV CGO_ENABLED 0
  3. RUN apk add --no-cache --update make git perl-utils dep
  4. RUN apk add --no-cache ca-certificates
  5. ENV PATH "/go/bin:${PATH}"
  6. RUN ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime
  7. RUN go get -u github.com/alecthomas/gometalinter && gometalinter --install
  8. ARG CACHE_BUSTER="wat"
  9. RUN mkdir -p /go/src/git.sungo.wtf/sungo/sbs-http
  10. COPY . /go/src/git.sungo.wtf/sungo/sbs-http
  11. WORKDIR /go/src/git.sungo.wtf/sungo/sbs-http
  12. RUN make
  13. FROM alpine
  14. COPY --from=build /go/src/git.sungo.wtf/sungo/sbs-http/runner.sh /bin/sbshttp.sh
  15. COPY --from=build /go/src/git.sungo.wtf/sungo/sbs-http/sbshttp /bin/sbshttp
  16. CMD [ "/bin/sbshttp.sh" ]