S-Dreamer commited on
Commit
ce10a35
·
verified ·
1 Parent(s): c97e054

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -8
Dockerfile CHANGED
@@ -1,20 +1,17 @@
1
- FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
5
- # system deps
6
- RUN apt-get update && apt-get install -y \
7
- git \
8
- build-essential \
9
- && rm -rf /var/lib/apt/lists/*
10
 
11
- # copy files
12
  COPY requirements.txt .
13
  RUN pip install --no-cache-dir -r requirements.txt
14
 
15
  COPY . .
16
 
17
- # HuggingFace Spaces uses port 7860
 
 
18
  EXPOSE 7860
19
 
20
  CMD ["python", "app.py"]
 
1
+ FROM python:3.11-slim
2
 
3
  WORKDIR /app
4
 
5
+ RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
 
 
 
 
6
 
 
7
  COPY requirements.txt .
8
  RUN pip install --no-cache-dir -r requirements.txt
9
 
10
  COPY . .
11
 
12
+ ENV GRADIO_SERVER_NAME=0.0.0.0
13
+ ENV GRADIO_SERVER_PORT=7860
14
+
15
  EXPOSE 7860
16
 
17
  CMD ["python", "app.py"]