chartManD commited on
Commit
fe0986b
·
1 Parent(s): c213a73

update Dockerfile for start app

Browse files
Files changed (1) hide show
  1. 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 echo "[SERVER WORK ONLINE]" > keepalive.log
10
 
11
- CMD tail -f keepalive.log
 
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