rld / Dockerfile
zynt31's picture
Update Dockerfile
813ea46 verified
raw
history blame contribute delete
390 Bytes
FROM python:3.10-slim
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
WORKDIR /app
# copy requirements and install
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# copy the app
COPY . .
# expose HF default port
EXPOSE 7860
# run uvicorn (Spaces expects your app to serve on port 7860)
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]