github.com/nginxinc/kubernetes-ingress@v1.12.5/tests/test-servers/Dockerfile (about)

     1  FROM golang:1.19-alpine as builder
     2  
     3  RUN mkdir /app
     4  
     5  ARG type
     6  
     7  COPY $type/main.go /app
     8  
     9  WORKDIR /app
    10  
    11  RUN GO111MODULE=off CGO_ENABLED=0 GOOS=linux go build -o main
    12  
    13  FROM scratch
    14  
    15  COPY --from=builder /app/main /app/
    16  
    17  ENTRYPOINT ["/app/main"]