fasthttp-postgresql.dockerfile 454 B

1234567891011121314151617181920
  1. FROM golang:1.11.5
  2. ADD ./ /fasthttp
  3. WORKDIR /fasthttp
  4. RUN mkdir bin
  5. ENV GOPATH /fasthttp
  6. ENV PATH ${GOPATH}/bin:${PATH}
  7. RUN rm -rf ./pkg/*
  8. RUN go get -d -u github.com/jackc/pgx
  9. RUN go get -d -u github.com/valyala/fasthttp/...
  10. RUN go get -u github.com/valyala/quicktemplate/qtc
  11. RUN go get -u github.com/mailru/easyjson/...
  12. RUN rm -f ./server-postgresql
  13. RUN go generate templates
  14. RUN go build -gcflags='-l=4' server-postgresql
  15. CMD ./server-postgresql