wolfofbackstreet commited on
Commit
b9bd75d
·
verified ·
1 Parent(s): dfc0edd

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -12
Dockerfile CHANGED
@@ -1,13 +1,14 @@
1
- FROM python:3.10-slim
2
- WORKDIR /app
3
- COPY . .
4
-
5
- # Create a non-root user for security (Hugging Face requirement)
6
- RUN useradd -m -u 1000 user
7
- USER user
8
- ENV HOME=/home/user PATH=/home/user/.local/bin:$PATH
9
-
10
- RUN pip install --no-cache-dir -r requirements.txt
11
- EXPOSE 7860
12
- ENV GRADIO_SERVER_NAME="0.0.0.0"
 
13
  CMD ["python", "melotts_training.py"]
 
1
+ FROM python:3.10-slim
2
+ WORKDIR /app
3
+ COPY . .
4
+
5
+ # Create a non-root user for security (Hugging Face requirement)
6
+ RUN useradd -m -u 1000 user
7
+ USER user
8
+ RUN chown -R user:user /app
9
+ ENV HOME=/home/user PATH=/home/user/.local/bin:$PATH
10
+
11
+ RUN pip install --no-cache-dir -r requirements.txt
12
+ EXPOSE 7860
13
+ ENV GRADIO_SERVER_NAME="0.0.0.0"
14
  CMD ["python", "melotts_training.py"]