Spaces:
Sleeping
Sleeping
Update Dockerfile to create necessary directories
Browse files- 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
|
| 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
|