ayf3 commited on
Commit
2bc33df
·
verified ·
1 Parent(s): 52c31e0

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -6
Dockerfile CHANGED
@@ -1,20 +1,17 @@
1
  FROM python:3.11-slim
2
 
3
  RUN apt-get update && apt-get install -y --no-install-recommends \
4
- git ffmpeg libsndfile1 && \
5
  rm -rf /var/lib/apt/lists/*
6
 
7
- # Create non-root user for HF Spaces
8
  RUN useradd -m -u 1000 user
9
-
10
  WORKDIR /app
 
11
  COPY requirements.txt .
12
  RUN pip install --no-cache-dir -r requirements.txt
13
 
14
- COPY app.py .
15
 
16
  USER user
17
- ENV GRADIO_SERVER_NAME="0.0.0.0"
18
  EXPOSE 7860
19
-
20
  CMD ["python", "app.py"]
 
1
  FROM python:3.11-slim
2
 
3
  RUN apt-get update && apt-get install -y --no-install-recommends \
4
+ ffmpeg libsndfile1 && \
5
  rm -rf /var/lib/apt/lists/*
6
 
 
7
  RUN useradd -m -u 1000 user
 
8
  WORKDIR /app
9
+
10
  COPY requirements.txt .
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
+ COPY . .
14
 
15
  USER user
 
16
  EXPOSE 7860
 
17
  CMD ["python", "app.py"]