Spaces:
Running
Running
Commit
·
98ddb82
1
Parent(s):
f475b4e
Fix Docker build: use npm install and include package-lock.json
Browse files- .gitignore +0 -2
- Dockerfile +2 -2
- web/package-lock.json +0 -0
.gitignore
CHANGED
|
@@ -60,5 +60,3 @@ data/api_data/
|
|
| 60 |
# App folder (optional Streamlit)
|
| 61 |
app/
|
| 62 |
|
| 63 |
-
# Package lock (let npm generate fresh)
|
| 64 |
-
web/package-lock.json
|
|
|
|
| 60 |
# App folder (optional Streamlit)
|
| 61 |
app/
|
| 62 |
|
|
|
|
|
|
Dockerfile
CHANGED
|
@@ -35,8 +35,8 @@ RUN pip install --no-cache-dir --upgrade pip && \
|
|
| 35 |
COPY web/package*.json ./web/
|
| 36 |
WORKDIR /app/web
|
| 37 |
|
| 38 |
-
# Install Node dependencies
|
| 39 |
-
RUN npm
|
| 40 |
|
| 41 |
# Copy web source files and build
|
| 42 |
COPY web/ .
|
|
|
|
| 35 |
COPY web/package*.json ./web/
|
| 36 |
WORKDIR /app/web
|
| 37 |
|
| 38 |
+
# Install Node dependencies (use npm install for robustness)
|
| 39 |
+
RUN npm install
|
| 40 |
|
| 41 |
# Copy web source files and build
|
| 42 |
COPY web/ .
|
web/package-lock.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|