Update Dockerfile
Browse files- Dockerfile +7 -3
Dockerfile
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
FROM gcr.io/distroless/base-debian13
|
| 2 |
WORKDIR /
|
| 3 |
-
COPY
|
| 4 |
-
|
| 5 |
-
CMD ["/imgapi", "-max-size", "24800", "-port", "7860"]
|
|
|
|
| 1 |
+
FROM debian:stable AS builder
|
| 2 |
+
WORKDIR /app
|
| 3 |
+
COPY . .
|
| 4 |
+
RUN chmod +x imgapi
|
| 5 |
+
|
| 6 |
FROM gcr.io/distroless/base-debian13
|
| 7 |
WORKDIR /
|
| 8 |
+
COPY --from=builder /app/imgapi /imgapi
|
| 9 |
+
CMD ["/imgapi", "-max-size", "24800", "-port", "7860"]
|
|
|