update Dockerfile for start app
Browse files- Dockerfile +4 -2
Dockerfile
CHANGED
|
@@ -1,11 +1,13 @@
|
|
| 1 |
from debian:12.11
|
| 2 |
|
|
|
|
|
|
|
| 3 |
RUN apt -y update
|
| 4 |
|
| 5 |
RUN apt-get update && apt-get install -y python3 python3-pip
|
| 6 |
RUN python3 --version
|
| 7 |
RUN pip --version
|
| 8 |
|
| 9 |
-
RUN
|
| 10 |
|
| 11 |
-
CMD
|
|
|
|
| 1 |
from debian:12.11
|
| 2 |
|
| 3 |
+
EXPOSE 7860
|
| 4 |
+
|
| 5 |
RUN apt -y update
|
| 6 |
|
| 7 |
RUN apt-get update && apt-get install -y python3 python3-pip
|
| 8 |
RUN python3 --version
|
| 9 |
RUN pip --version
|
| 10 |
|
| 11 |
+
RUN pip install "fastapi[standard]"
|
| 12 |
|
| 13 |
+
CMD gunicorn main:app --workers 4 --worker-class uvicorn.workers.UvicornWorker --bind 0.0.0.0:7860
|