ntt123 commited on
Commit
fba34e8
verified
1 Parent(s): dc637e3

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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 python:3.11
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
- CMD ["python", "app.py"]
 
 
 
 
 
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"]