| FROM debian:stable AS builder | |
| WORKDIR /app | |
| COPY . . | |
| RUN chmod +x imgapi | |
| FROM gcr.io/distroless/base-debian13 | |
| WORKDIR / | |
| COPY --from=builder /app/imgapi /imgapi | |
| CMD ["/imgapi", "-max-size", "24800", "-port", "7860"] | |
| FROM debian:stable AS builder | |
| WORKDIR /app | |
| COPY . . | |
| RUN chmod +x imgapi | |
| FROM gcr.io/distroless/base-debian13 | |
| WORKDIR / | |
| COPY --from=builder /app/imgapi /imgapi | |
| CMD ["/imgapi", "-max-size", "24800", "-port", "7860"] | |