Update Dockerfile
Browse files- Dockerfile +6 -18
Dockerfile
CHANGED
|
@@ -1,20 +1,8 @@
|
|
|
|
|
| 1 |
FROM snailyp/blackbox2api:latest
|
| 2 |
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 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"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|