tao-shen commited on
Commit
8a84f8c
·
verified ·
1 Parent(s): 039d4aa

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -9
Dockerfile CHANGED
@@ -1,16 +1,14 @@
1
- FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
5
- COPY requirements.txt .
6
- RUN pip install --no-cache-dir -r requirements.txt -q
7
 
8
- COPY . .
9
 
10
- # Set environment variables
11
- ENV PYTHONUNBUFFERED=1
12
  ENV GRADIO_SERVER_NAME="0.0.0.0"
13
- ENV GRADIO_SERVER_PORT="7860"
14
 
15
- # Run the application
16
- CMD ["python", "app.py"]
 
1
+ FROM python:3.12-slim
2
 
3
  WORKDIR /app
4
 
5
+ COPY requirements.txt /app/requirements.txt
6
+ RUN pip install --no-cache-dir -r requirements.txt
7
 
8
+ COPY . /app
9
 
10
+ # Set environment variable for Gradio
 
11
  ENV GRADIO_SERVER_NAME="0.0.0.0"
12
+ ENV PYTHONUNBUFFERED=1
13
 
14
+ CMD ["python", "scripts/entrypoint.sh"]