2021-12-14 14:02:19 +08:00
|
|
|
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
|
2021-12-17 04:50:04 +08:00
|
|
|
COPY ./gradio ./gradio
|
|
|
|
COPY ./setup.py ./setup.py
|
|
|
|
COPY ./MANIFEST.in ./MANIFEST.in
|
2021-12-14 14:02:19 +08:00
|
|
|
RUN python setup.py install
|
2021-12-17 04:50:04 +08:00
|
|
|
WORKDIR /gradio
|
|
|
|
COPY ./website ./website
|
|
|
|
COPY ./demo ./demo
|
|
|
|
COPY ./guides ./guides
|
2021-12-14 14:02:19 +08:00
|
|
|
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
|