Spaces:
Sleeping
Sleeping
lengyue233
commited on
fix permission
Browse files- Dockerfile +5 -5
Dockerfile
CHANGED
@@ -7,16 +7,16 @@ ENV PATH="/root/.local/bin:${PATH}"
|
|
7 |
RUN poetry config virtualenvs.create false
|
8 |
|
9 |
# Install dependencies
|
10 |
-
|
|
|
11 |
|
12 |
RUN git clone https://github.com/fishaudio/fish-diffusion.git --depth 1
|
13 |
|
14 |
-
WORKDIR /
|
15 |
RUN poetry install
|
16 |
|
17 |
-
COPY checkpoint.ckpt checkpoints/checkpoint.ckpt
|
18 |
-
COPY exp_hifisinger.py configs/exp_hifisinger.py
|
19 |
-
RUN chmod -R 777 /root/fish-diffusion
|
20 |
|
21 |
ENV GRADIO_SERVER_NAME=0.0.0.0
|
22 |
ENV GRADIO_SERVER_PORT=7860
|
|
|
7 |
RUN poetry config virtualenvs.create false
|
8 |
|
9 |
# Install dependencies
|
10 |
+
USER user
|
11 |
+
WORKDIR /app
|
12 |
|
13 |
RUN git clone https://github.com/fishaudio/fish-diffusion.git --depth 1
|
14 |
|
15 |
+
WORKDIR /app/fish-diffusion
|
16 |
RUN poetry install
|
17 |
|
18 |
+
COPY --chown=user checkpoint.ckpt checkpoints/checkpoint.ckpt
|
19 |
+
COPY --chown=user exp_hifisinger.py configs/exp_hifisinger.py
|
|
|
20 |
|
21 |
ENV GRADIO_SERVER_NAME=0.0.0.0
|
22 |
ENV GRADIO_SERVER_PORT=7860
|