ww3r / Dockerfile
Your Name
add sherpa-asr HTTP server
dc42c8e
raw
history blame contribute delete
340 Bytes
FROM python:3.9-slim
RUN useradd -m -u 1000 user
USER user
ENV PATH="/home/user/.local/bin:$PATH"
WORKDIR /app
COPY --chown=user requirements.txt .
RUN pip install --no-cache-dir --upgrade -r requirements.txt
COPY --chown=user . .
EXPOSE 7860
CMD ["python", "asr_server.py", "--port", "7860", "--host", "0.0.0.0", "--ip-version", "4"]