Files
vosk-datacleaner/vosk/vosk_service/Dockerfile

22 lines
417 B
Docker

FROM python:3.10-slim
# Install dependencies
RUN apt-get update && apt-get install -y \
ffmpeg \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Install Python dependencies
COPY vosk_service/requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
# Copy service code
COPY vosk_service/app.py ./
# Copy model directory
COPY vosk-model-fa-0.42/ ./model/
EXPOSE 5000
CMD ["python", "app.py"]