asr_indic_server_cpu / Dockerfile.cpu
sachin
add cpu mode
6a2d9d9
raw
history blame contribute delete
590 Bytes
FROM nvidia/cuda:12.6.0-cudnn-devel-ubuntu22.04
WORKDIR /app
RUN apt-get update && apt-get install -y \
python3 \
python3-pip \
git \
ffmpeg \
sudo \
wget \
&& ln -s /usr/bin/python3 /usr/bin/python \
&& rm -rf /var/lib/apt/lists/*
COPY cpu-requirements.txt .
RUN pip install --no-cache-dir -r cpu-requirements.txt
COPY . .
RUN useradd -ms /bin/bash appuser \
&& chown -R appuser:appuser /app
USER appuser
EXPOSE 7860
# Use absolute path for clarity
CMD ["python", "/app/src/asr_api.py", "--host", "0.0.0.0", "--port", "7860", "--device", "cuda"]