mirror of
https://github.com/gradio-app/gradio.git
synced 2024-11-27 01:40:20 +08:00
22 lines
515 B
Docker
22 lines
515 B
Docker
FROM python:3.8
|
|
|
|
RUN apt-get update
|
|
RUN apt-get --assume-yes install nginx
|
|
RUN mkdir gradio
|
|
RUN pip install numpy matplotlib
|
|
WORKDIR /gradio
|
|
COPY ./gradio ./gradio
|
|
COPY ./setup.py ./setup.py
|
|
COPY ./MANIFEST.in ./MANIFEST.in
|
|
RUN python setup.py install
|
|
WORKDIR /gradio
|
|
COPY ./website ./website
|
|
COPY ./demo ./demo
|
|
COPY ./guides ./guides
|
|
WORKDIR /gradio/website/demos
|
|
RUN pip install -r requirements.txt
|
|
RUN python map_demos.py
|
|
RUN cp nginx.conf /etc/nginx/conf.d/default.conf
|
|
|
|
ENTRYPOINT nginx && python run_demos.py
|