api-mg / Dockerfile
MGZON's picture
create Dockerfile
2aaa9c0 verified
raw
history blame
269 Bytes
FROM python:3.10-slim
ENV PYTHONUNBUFFERED=1 \
HF_HUB_DISABLE_SYMLINKS_WARNING=1 \
PORT=7860
WORKDIR /app
COPY . /app
RUN pip install --upgrade pip && \
pip install -r requirements.txt
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]