fasthttp-postgresql-prefork.dockerfile 361 B

12345678910111213141516
  1. FROM golang:1.13
  2. WORKDIR /fasthttp
  3. COPY ./src /fasthttp
  4. RUN go get github.com/valyala/quicktemplate/qtc
  5. RUN go get -u github.com/mailru/easyjson/...
  6. RUN go mod download
  7. RUN go generate ./templates
  8. # RUN easyjson -pkg
  9. # RUN easyjson -all src/common/common.go
  10. RUN go build -o app-pg -gcflags='-l=4' -ldflags="-s -w" ./server-postgresql
  11. CMD ./app-pg -prefork