BE_T2V / Dockerfile
hoangkha1810's picture
Update Dockerfile
2824d9b verified
raw
history blame contribute delete
412 Bytes
FROM python:3.9-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# Tạo thư mục outputs và cache với quyền ghi
RUN mkdir -p /tmp/outputs /tmp/huggingface_cache /.cache/huggingface/hub && \
chmod -R 777 /tmp/outputs /tmp/huggingface_cache /.cache/huggingface/hub
EXPOSE 8000
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]