Transcription / Dockerfile
Shubham32142
Fix Dockerfile: create models dir at build time instead of copying from repo
0927600
raw
history blame contribute delete
389 Bytes
FROM python:3.11-slim
WORKDIR /app
RUN apt-get update \
&& apt-get install -y --no-install-recommends ffmpeg \
&& rm -rf /var/lib/apt/lists/*
COPY ml/requirements.txt ./requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
COPY ml/ ./ml/
RUN mkdir -p /app/models
WORKDIR /app/ml
EXPOSE 8000
CMD ["uvicorn", "serve:app", "--host", "0.0.0.0", "--port", "8000"]