25 lines
669 B
Docker
25 lines
669 B
Docker
FROM python:3.12-slim
|
|
|
|
# Set environment variables
|
|
ENV DEBIAN_FRONTEND=noninteractive \
|
|
PYTHONUNBUFFERED=1 \
|
|
PYTHONDONTWRITEBYTECODE=1
|
|
|
|
RUN apt-get update && apt-get install -y git ffmpeg
|
|
|
|
# Copy requirements file
|
|
COPY requirements.txt /app/requirements.txt
|
|
|
|
# Install requirements
|
|
RUN pip install --no-deps git+https://git.d.aiengines.ir/bi/asr_triton_client.git@05c8f7a88d3ff41d82591b6beb41bab86d81d421
|
|
RUN pip install --no-cache-dir -r /app/requirements.txt
|
|
|
|
# Set working directory and copy app
|
|
WORKDIR /app
|
|
COPY . /app
|
|
|
|
# Expose necessary ports
|
|
EXPOSE 7200
|
|
|
|
# Command to run the script
|
|
CMD ["uvicorn", "src.main:app", "--host", "0.0.0.0", "--port", "7200"] |