fasthttp-prefork.dockerfile 183 B

123456789101112
  1. FROM docker.io/golang:1.19
  2. WORKDIR /fasthttp
  3. COPY ./src /fasthttp
  4. RUN go generate -x ./templates
  5. RUN GOAMD64=v3 go build -ldflags="-s -w" -o app .
  6. EXPOSE 8080
  7. CMD ./app -prefork