Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +1 -2
Dockerfile
CHANGED
@@ -7,12 +7,11 @@ COPY . .
|
|
7 |
# Create a non-root user for security (Hugging Face requirement)
|
8 |
RUN useradd -m -u 1000 user
|
9 |
USER user
|
|
|
10 |
ENV HOME=/home/user PATH=/home/user/.local/bin:$PATH
|
11 |
|
12 |
RUN git clone https://github.com/myshell-ai/MeloTTS
|
13 |
RUN git clone https://github.com/myshell-ai/OpenVoice
|
14 |
-
RUN chown -R user:user /app
|
15 |
-
|
16 |
RUN pip install --no-cache-dir -r requirements.txt
|
17 |
EXPOSE 7860
|
18 |
ENV GRADIO_SERVER_NAME="0.0.0.0"
|
|
|
7 |
# Create a non-root user for security (Hugging Face requirement)
|
8 |
RUN useradd -m -u 1000 user
|
9 |
USER user
|
10 |
+
RUN chown -R user:user /app && chmod -R 775 /app
|
11 |
ENV HOME=/home/user PATH=/home/user/.local/bin:$PATH
|
12 |
|
13 |
RUN git clone https://github.com/myshell-ai/MeloTTS
|
14 |
RUN git clone https://github.com/myshell-ai/OpenVoice
|
|
|
|
|
15 |
RUN pip install --no-cache-dir -r requirements.txt
|
16 |
EXPOSE 7860
|
17 |
ENV GRADIO_SERVER_NAME="0.0.0.0"
|