Spaces:
Sleeping
Sleeping
yuvrajsingh6
commited on
Commit
·
d20bd4b
1
Parent(s):
4ba4b25
fix: Build frontend in container during Docker build
Browse files- Dockerfile +3 -1
Dockerfile
CHANGED
|
@@ -14,7 +14,9 @@ COPY backend/requirements.txt .
|
|
| 14 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 15 |
|
| 16 |
COPY backend/ ./backend/
|
| 17 |
-
COPY frontend/
|
|
|
|
|
|
|
| 18 |
|
| 19 |
RUN mkdir -p /app/storage/uploads /app/storage/vector_db
|
| 20 |
|
|
|
|
| 14 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 15 |
|
| 16 |
COPY backend/ ./backend/
|
| 17 |
+
COPY frontend/ ./frontend/
|
| 18 |
+
|
| 19 |
+
RUN cd frontend && npm install && npm run build
|
| 20 |
|
| 21 |
RUN mkdir -p /app/storage/uploads /app/storage/vector_db
|
| 22 |
|