sniro23 commited on
Commit
54007ac
·
1 Parent(s): 19aaa42

Update Dockerfile to create necessary directories

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -30,6 +30,9 @@ ENV HOME=/home/user \
30
  PATH=/home/user/.local/bin:$PATH \
31
  PYTHONPATH=/app
32
 
 
 
 
33
  # Copy and install Python requirements
34
  COPY --chown=user requirements.txt .
35
  RUN pip install --no-cache-dir -r requirements.txt
@@ -39,10 +42,8 @@ COPY --chown=user --from=frontend-builder /app/frontend/.next ./.next
39
  COPY --chown=user --from=frontend-builder /app/frontend/public ./public
40
  COPY --chown=user --from=frontend-builder /app/frontend/package*.json ./
41
 
42
- # Copy backend code and other necessary files
43
  COPY --chown=user src/ ./src/
44
- COPY --chown=user figures/ ./figures/
45
- COPY --chown=user pdfs/ ./pdfs/
46
 
47
  # Install frontend production dependencies
48
  RUN npm install --production
 
30
  PATH=/home/user/.local/bin:$PATH \
31
  PYTHONPATH=/app
32
 
33
+ # Create necessary directories
34
+ RUN mkdir -p ./figures ./pdfs ./src/processed_markdown
35
+
36
  # Copy and install Python requirements
37
  COPY --chown=user requirements.txt .
38
  RUN pip install --no-cache-dir -r requirements.txt
 
42
  COPY --chown=user --from=frontend-builder /app/frontend/public ./public
43
  COPY --chown=user --from=frontend-builder /app/frontend/package*.json ./
44
 
45
+ # Copy backend code
46
  COPY --chown=user src/ ./src/
 
 
47
 
48
  # Install frontend production dependencies
49
  RUN npm install --production