Spaces:
Runtime error
Runtime error
gamingflexer
commited on
Commit
·
a3e16bb
1
Parent(s):
bddfd76
Add soundfile dependency and update Dockerfile
Browse files- Dockerfile +5 -0
Dockerfile
CHANGED
|
@@ -7,6 +7,9 @@ WORKDIR /code
|
|
| 7 |
|
| 8 |
COPY ./requirements.txt /code/requirements.txt
|
| 9 |
|
|
|
|
|
|
|
|
|
|
| 10 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
| 11 |
|
| 12 |
# Set up a new user named "user" with user ID 1000
|
|
@@ -28,6 +31,8 @@ WORKDIR $HOME/app
|
|
| 28 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
| 29 |
COPY --chown=user . $HOME/app
|
| 30 |
|
|
|
|
|
|
|
| 31 |
ENV GRADIO_SERVER_NAME=0.0.0.0
|
| 32 |
|
| 33 |
EXPOSE 7860
|
|
|
|
| 7 |
|
| 8 |
COPY ./requirements.txt /code/requirements.txt
|
| 9 |
|
| 10 |
+
RUN apt update && apt install -y libsndfile1
|
| 11 |
+
RUN apt-get update && apt-get upgrade -y
|
| 12 |
+
|
| 13 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
| 14 |
|
| 15 |
# Set up a new user named "user" with user ID 1000
|
|
|
|
| 31 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
| 32 |
COPY --chown=user . $HOME/app
|
| 33 |
|
| 34 |
+
RUN pip install --force-reinstall soundfile
|
| 35 |
+
|
| 36 |
ENV GRADIO_SERVER_NAME=0.0.0.0
|
| 37 |
|
| 38 |
EXPOSE 7860
|