doevent commited on
Commit
0484c67
·
verified ·
1 Parent(s): b44f7b0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -10
Dockerfile CHANGED
@@ -1,10 +1,10 @@
1
- FROM python:3.9
2
- RUN useradd -m -u 1000 user
3
- USER user
4
- ENV PATH="/home/user/.local/bin:$PATH"
5
- WORKDIR /app
6
- COPY --chown=user ./requirements.txt requirements.txt
7
- RUN pip install --no-cache-dir --upgrade -r requirements.txt
8
- COPY --chown=user . /app
9
-
10
- CMD ["gunicorn", "--workers", "1", "--bind", "0.0.0.0:7860", "app:app"]
 
1
+ FROM python:3.12
2
+ RUN useradd -m -u 1000 user
3
+ USER user
4
+ ENV PATH="/home/user/.local/bin:$PATH"
5
+ WORKDIR /app
6
+ COPY --chown=user ./requirements.txt requirements.txt
7
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
8
+ COPY --chown=user . /app
9
+
10
+ CMD ["python", "app.py"]