go-pg-prefork.dockerfile 404 B

123456789101112131415161718
  1. FROM golang:1.11.5
  2. ADD ./src/postgres/ /go-std
  3. ADD ./src/templates/ /go-std/src/templates
  4. WORKDIR /go-std
  5. RUN mkdir bin
  6. ENV GOPATH /go-std
  7. ENV PATH ${GOPATH}/bin:${PATH}
  8. RUN go get github.com/lib/pq
  9. RUN go get github.com/valyala/quicktemplate
  10. RUN go get -u github.com/valyala/quicktemplate/qtc
  11. RUN qtc -file src/templates/fortunes.qtpl
  12. RUN go build -o hello_postgres .
  13. CMD ./hello_postgres -prefork