brewmatch / Dockerfile
mg643's picture
Fix Dockerfile - use script to download model
e3d1f60
raw
history blame contribute delete
422 Bytes
FROM python:3.13-slim
WORKDIR /app
COPY src/ src/
COPY pyproject.toml .
COPY uv.lock .
COPY README.md .
COPY download_model.py .
RUN pip install uv && uv sync --frozen
RUN pip install huggingface_hub && python download_model.py
EXPOSE 7860
ENV FLASK_HOST=0.0.0.0
ENV FLASK_PORT=7860
CMD ["uv", "run", "gunicorn", "brewmatch.api.app:create_app()", \
"--bind", "0.0.0.0:7860", "--workers", "2", "--timeout", "120"]