fasthttp-prefork.dockerfile 211 B

1234567891011121314
  1. FROM golang:1.17
  2. WORKDIR /fasthttp
  3. COPY ./src /fasthttp
  4. RUN go get -u github.com/valyala/quicktemplate/qtc
  5. RUN go generate ./templates
  6. RUN go build -ldflags="-s -w" -o app .
  7. EXPOSE 8080
  8. CMD ./app -prefork