FROM python:3.8-slim | |
WORKDIR /usr/src/app | |
COPY . . | |
RUN pip install --no-cache-dir gradio | |
EXPOSE 7860 | |
ENV GRADIO_SERVER_NAME="0.0.0.0" | |
CMD ["python", "app.py"] | |
docker build -t gradio-app . | |
docker run -p 7860:7860 gradio-app |
FROM python:3.8-slim | |
WORKDIR /usr/src/app | |
COPY . . | |
RUN pip install --no-cache-dir gradio | |
EXPOSE 7860 | |
ENV GRADIO_SERVER_NAME="0.0.0.0" | |
CMD ["python", "app.py"] | |
docker build -t gradio-app . | |
docker run -p 7860:7860 gradio-app |