Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +7 -3
Dockerfile
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
# read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
|
2 |
# you will also find guides on how best to write your Dockerfile
|
3 |
|
4 |
-
FROM
|
5 |
|
6 |
-
RUN apt update; apt install libsndfile1-dev make autoconf automake libtool gcc pkg-config -y
|
7 |
|
8 |
WORKDIR /code
|
9 |
|
@@ -27,4 +27,8 @@ WORKDIR $HOME/app
|
|
27 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
28 |
COPY --chown=user . $HOME/app
|
29 |
|
30 |
-
|
|
|
|
|
|
|
|
|
|
1 |
# read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
|
2 |
# you will also find guides on how best to write your Dockerfile
|
3 |
|
4 |
+
FROM us-docker.pkg.dev/colab-images/public/runtime:latest
|
5 |
|
6 |
+
RUN apt update; apt install libsndfile1-dev make autoconf automake libtool gcc pkg-config -y python3-dev
|
7 |
|
8 |
WORKDIR /code
|
9 |
|
|
|
27 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
28 |
COPY --chown=user . $HOME/app
|
29 |
|
30 |
+
RUN bash ./build_ext.sh
|
31 |
+
EXPOSE 7860
|
32 |
+
ENV GRADIO_SERVER_NAME="0.0.0.0"
|
33 |
+
|
34 |
+
ENTRYPOINT ["python", "app.py"]
|