Jay1121 commited on
Commit
485c1a9
·
verified ·
1 Parent(s): 8884423

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -11
Dockerfile CHANGED
@@ -1,16 +1,14 @@
1
- FROM python:3.12
2
- COPY --from=ghcr.io/astral-sh/uv:0.4.20 /uv /bin/uv
3
-
4
- RUN useradd -m -u 1000 user
5
- ENV PATH="/home/user/.local/bin:$PATH"
6
- ENV UV_SYSTEM_PYTHON=1
7
 
8
  WORKDIR /app
9
 
10
- COPY --chown=user ./requirements.txt requirements.txt
11
- RUN uv pip install -r requirements.txt
 
 
12
 
13
- COPY --chown=user . /app
14
- USER user
15
 
16
- CMD ["gunicorn", "app:server", "--workers", "4", "--bind", "0.0.0.0:7860"]
 
 
1
+ FROM python:3.11-slim
 
 
 
 
 
2
 
3
  WORKDIR /app
4
 
5
+ COPY requirements.txt /app/
6
+ RUN pip install --no-cache-dir -r requirements.txt
7
+
8
+ COPY . /app/
9
 
10
+ ENV PORT=7860
11
+ EXPOSE 7860
12
 
13
+ # gunicorn 씀: python으로 직접 실행
14
+ CMD ["python", "-u", "app.py"]