Subhadip007 commited on
Commit
44fb6e1
·
1 Parent(s): d4041c3

fix: clone dataset before creating subdirectories

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -27,13 +27,13 @@ COPY .env.example ./.env
27
  # COPY data/embeddings/embedding_index.json ./data/embeddings/embedding_index.json
28
  # COPY data/chunks/ ./data/chunks/
29
 
30
- # Create remaining data dirs
31
- RUN mkdir -p data/raw data/processed logs
32
-
33
  # Download the 4.4 GB database from the limits-free HF Dataset using git
34
  # This happens during the Docker build so the API starts instantly later
35
  RUN git lfs install && git clone https://huggingface.co/datasets/Subhadip007/researchpilot-data /app/data
36
 
 
 
 
37
  # HuggingFace Spaces uses port 7860
38
  ENV PORT=7860
39
  EXPOSE 7860
 
27
  # COPY data/embeddings/embedding_index.json ./data/embeddings/embedding_index.json
28
  # COPY data/chunks/ ./data/chunks/
29
 
 
 
 
30
  # Download the 4.4 GB database from the limits-free HF Dataset using git
31
  # This happens during the Docker build so the API starts instantly later
32
  RUN git lfs install && git clone https://huggingface.co/datasets/Subhadip007/researchpilot-data /app/data
33
 
34
+ # Create remaining data dirs inside the cloned repo
35
+ RUN mkdir -p data/raw data/processed logs
36
+
37
  # HuggingFace Spaces uses port 7860
38
  ENV PORT=7860
39
  EXPOSE 7860