Spaces:
Sleeping
Sleeping
work-sejal commited on
Commit ·
96db302
1
Parent(s): 10fd042
Fix: Update Dockerfile to copy models and dataset into container
Browse files- Dockerfile +5 -3
Dockerfile
CHANGED
|
@@ -5,9 +5,11 @@ COPY requirements.txt .
|
|
| 5 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 6 |
COPY app/ ./app/
|
| 7 |
COPY training/ ./training/
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
|
|
|
|
|
|
| 11 |
ENV LOG_LEVEL=INFO
|
| 12 |
EXPOSE 7860
|
| 13 |
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 5 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 6 |
COPY app/ ./app/
|
| 7 |
COPY training/ ./training/
|
| 8 |
+
COPY data/artifacts/models/ /app/data/artifacts/models/
|
| 9 |
+
COPY data/learning_outcome_os_dataset_v2/ /app/data/learning_outcome_os_dataset_v2/
|
| 10 |
+
RUN mkdir -p /app/data/artifacts/{feedback,reports,metrics}
|
| 11 |
+
ENV MODEL_ARTIFACT_DIR=/app/data/artifacts/models
|
| 12 |
+
ENV DATASET_DIR=/app/data/learning_outcome_os_dataset_v2
|
| 13 |
ENV LOG_LEVEL=INFO
|
| 14 |
EXPOSE 7860
|
| 15 |
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|