commitguard-env / Dockerfile.serve
Nitishkumar-ai's picture
Deploy Option A: Transition HF Space to lightweight OpenEnv Server
6398066
raw
history blame contribute delete
379 Bytes
FROM python:3.12-slim
ENV DEBIAN_FRONTEND=noninteractive
ENV PYTHONUNBUFFERED=1
WORKDIR /app
COPY pyproject.toml README.md ./
COPY commitguard_env/ commitguard_env/
COPY data/ data/
COPY server/ server/
RUN pip install --no-cache-dir -U pip && pip install --no-cache-dir -e .
EXPOSE 7860
CMD ["uvicorn", "commitguard_env.server:app", "--host", "0.0.0.0", "--port", "7860"]