JIMMYGGG commited on
Commit
68c343b
·
verified ·
1 Parent(s): e621f3c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -18
Dockerfile CHANGED
@@ -1,20 +1,8 @@
 
1
  FROM snailyp/blackbox2api:latest
2
 
3
- ADD file ... in /
4
- CMD ["bash"]
5
- ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
6
- ENV LANG=C.UTF-8
7
- RUN /bin/sh -c set -eux;
8
- ENV GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D
9
- ENV PYTHON_VERSION=3.10.15
10
- RUN /bin/sh -c set -eux;
11
- RUN /bin/sh -c set -eux;
12
- CMD ["python3"]
13
- WORKDIR /app
14
- COPY ./api /app/api # buildkit
15
- COPY ./main.py /app # buildkit
16
- COPY ./.env /app # buildkit
17
- COPY ./requirements.txt /app # buildkit
18
- RUN /bin/sh -c pip install
19
- EXPOSE map[7860/tcp:{}]
20
- CMD ["uvicorn" "main:app" "--host" "0.0.0.0"
 
1
+ # Use the base image from the original command
2
  FROM snailyp/blackbox2api:latest
3
 
4
+ # Expose the port on which the application will run
5
+ EXPOSE 8001
6
+
7
+ # Define the command that starts the application
8
+ CMD ["python", "app.py"]