Downloader02 / Dockerfile
THED1's picture
Update Dockerfile
9af82b4 verified
Raw
History Blame Contribute Delete
264 Bytes
FROM python:3.10-slim
ENV PYTHONUNBUFFERED=1
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app.py .
RUN mkdir -p /data && chmod 777 /data
EXPOSE 7860
CMD ["uvicorn","app:app","--host","0.0.0.0","--port","7860"]