2ch commited on
Commit
1025e4a
·
verified ·
1 Parent(s): bc9e5c6

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -3
Dockerfile CHANGED
@@ -1,5 +1,9 @@
 
 
 
 
 
1
  FROM gcr.io/distroless/base-debian13
2
  WORKDIR /
3
- COPY . .
4
- # RUN mkdir -p /uploads && chmod 777 /uploads
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"]