gin-gorm.dockerfile 288 B

123456789101112131415
  1. FROM golang as build-env
  2. WORKDIR /src/
  3. ADD ./gin-gorm /src/
  4. #- original submission
  5. RUN go build -o app
  6. #RUN go build -tags=jsoniter -o app - tryed this but slower on my pc
  7. FROM gcr.io/distroless/base:debug
  8. ENV GIN_MODE=release
  9. COPY --from=build-env /src/app /app
  10. ENTRYPOINT ["/app"]