Sabih555 commited on
Commit
048457c
·
1 Parent(s): a9810af

fixed file

Browse files
Files changed (3) hide show
  1. Dockerfile +4 -4
  2. app.py → main.py +0 -0
  3. requirements.txt +0 -0
Dockerfile CHANGED
@@ -1,11 +1,11 @@
1
 
2
  FROM python:3.10-slim
3
 
4
- WORKDIR /python-docker
5
 
6
- COPY requirements.txt requirements.txt
7
- RUN pip3 install -r requirements.txt
8
 
9
  COPY . .
10
 
11
- CMD [ "python3", "-m" , "flask", "run", "--host=0.0.0.0", "--port", "7860"]
 
1
 
2
  FROM python:3.10-slim
3
 
4
+ WORKDIR /code
5
 
6
+ COPY ./requirements.txt /code/requirements.txt
7
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
8
 
9
  COPY . .
10
 
11
+ CMD [ "gunicorn", "-b", "0.0.0.0:7860", "main:app"]
app.py → main.py RENAMED
File without changes
requirements.txt CHANGED
Binary files a/requirements.txt and b/requirements.txt differ