fine_tuning / Dockerfile
Moncey10's picture
Upload 3 files
804919e verified
raw
history blame contribute delete
395 Bytes
FROM python:3.10-slim
WORKDIR /app
# Copy requirements first (better layer caching)
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy app files
COPY app_enhanced.py .
COPY config.py .
COPY artifacts/ ./artifacts/
# Hugging Face uses port 7860
EXPOSE 7860
CMD ["bash", "-lc", "uvicorn app_enhanced:app --host 0.0.0.0 --port ${PORT:-7860}"]