Aryan commited on
Commit
c0eb3f8
·
1 Parent(s): 280c806
Files changed (2) hide show
  1. dockerfile +6 -10
  2. requirements.txt +0 -1
dockerfile CHANGED
@@ -1,15 +1,11 @@
1
- FROM python:3.9
2
-
3
- RUN useradd -m -u 1000 user
4
- USER user
5
- ENV PATH="/home/user/.local/bin:$PATH"
6
 
7
  WORKDIR /app
8
 
9
- COPY --chown=user ./requirements.txt requirements.txt
10
- RUN pip install --no-cache-dir --upgrade -r requirements.txt
 
11
 
12
- COPY --chown=user . /app
13
 
14
- # Use gunicorn for Flask production deployment
15
- CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--workers", "4", "app:app.py"]
 
1
+ FROM python:3.10
 
 
 
 
2
 
3
  WORKDIR /app
4
 
5
+ COPY requirements.txt .
6
+
7
+ RUN pip install --no-cache-dir -r requirements.txt
8
 
9
+ COPY . .
10
 
11
+ CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]
 
requirements.txt CHANGED
@@ -10,4 +10,3 @@ flask==2.3.0
10
  gunicorn
11
  fastapi
12
  uvicorn[standard]
13
- -e .
 
10
  gunicorn
11
  fastapi
12
  uvicorn[standard]