esp32-s3-stt-api / Dockerfile
luannltce190980's picture
Create Dockerfile
1280a89 verified
Raw
History Blame Contribute Delete
473 Bytes
FROM python:3.9-slim
# Cài đặt thư viện hệ thống cần thiết cho xử lý âm thanh
RUN apt-get update && apt-get install -y \
ffmpeg \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /code
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
COPY . .
# Chạy FastAPI trên cổng 7860 (cổng mặc định của Hugging Face)
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]