Initial commit
This commit is contained in:
+30
@@ -0,0 +1,30 @@
|
||||
FROM python:3.11-slim
|
||||
|
||||
ENV PYTHONDONTWRITEBYTECODE=1 \
|
||||
PYTHONUNBUFFERED=1 \
|
||||
PIP_NO_CACHE_DIR=1 \
|
||||
PYTHONPATH=/app
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
ca-certificates \
|
||||
ffmpeg \
|
||||
libasound2 \
|
||||
libgomp1 \
|
||||
libsndfile1 \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY requirements.txt /tmp/requirements.txt
|
||||
|
||||
RUN python -m pip install --upgrade pip setuptools wheel \
|
||||
&& python -m pip install -r /tmp/requirements.txt
|
||||
|
||||
RUN mkdir -p /app/realtime_voice_service
|
||||
|
||||
COPY . /app/realtime_voice_service
|
||||
|
||||
EXPOSE 8000 9092
|
||||
|
||||
CMD ["sh", "-c", "python -m uvicorn realtime_voice_service.main:app --host 0.0.0.0 --port ${REALTIME_VOICE_HTTP_PORT:-8000}"]
|
||||
Reference in New Issue
Block a user