aaa / Dockerfile
work-sejal
Fix: Update Dockerfile to copy models and dataset into container
96db302
Raw
History Blame Contribute Delete
648 Bytes
FROM python:3.11-slim
WORKDIR /app
RUN apt-get update && apt-get install -y gcc g++ curl && rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app/ ./app/
COPY training/ ./training/
COPY data/artifacts/models/ /app/data/artifacts/models/
COPY data/learning_outcome_os_dataset_v2/ /app/data/learning_outcome_os_dataset_v2/
RUN mkdir -p /app/data/artifacts/{feedback,reports,metrics}
ENV MODEL_ARTIFACT_DIR=/app/data/artifacts/models
ENV DATASET_DIR=/app/data/learning_outcome_os_dataset_v2
ENV LOG_LEVEL=INFO
EXPOSE 7860
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]