ayf3 commited on
Commit
5749c4e
·
verified ·
1 Parent(s): 973e473

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -0
Dockerfile CHANGED
@@ -4,6 +4,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
4
  git ffmpeg libsndfile1 && \
5
  rm -rf /var/lib/apt/lists/*
6
 
 
 
 
7
  WORKDIR /app
8
  COPY requirements.txt .
9
  RUN pip install --no-cache-dir -r requirements.txt
 
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