test-ws / Dockerfile
XciD's picture
XciD HF Staff
Update Dockerfile
1a2207f verified
raw
history blame
311 Bytes
FROM python:3
ENV GRADIO_SERVER_PORT=7860
ENV GRADIO_SERVER_NAME=0.0.0.0
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY ./main.py .
EXPOSE 7860
CMD [“uvicorn”, “main:app”, “–host”, “0.0.0.0”, “–port”, “7860”, “–proxy-headers”]