SaleemFiverr commited on
Commit ·
cfbc998
1
Parent(s): 61b6511
Stabilize Hugging Face npm install
Browse files- Dockerfile +6 -2
Dockerfile
CHANGED
|
@@ -15,12 +15,16 @@ RUN pip3 install --no-cache-dir yt-dlp
|
|
| 15 |
# Set the working directory
|
| 16 |
WORKDIR /app
|
| 17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
# Copy package management files
|
| 19 |
COPY package*.json ./
|
| 20 |
COPY web/package*.json ./web/
|
| 21 |
|
| 22 |
-
# Install ALL dependencies (including devDependencies needed for build)
|
| 23 |
-
RUN npm
|
| 24 |
|
| 25 |
# Copy the rest of the application code
|
| 26 |
COPY . .
|
|
|
|
| 15 |
# Set the working directory
|
| 16 |
WORKDIR /app
|
| 17 |
|
| 18 |
+
# Keep npm behavior deterministic in CI/container builds
|
| 19 |
+
ENV NPM_CONFIG_LEGACY_PEER_DEPS=true
|
| 20 |
+
ENV CI=true
|
| 21 |
+
|
| 22 |
# Copy package management files
|
| 23 |
COPY package*.json ./
|
| 24 |
COPY web/package*.json ./web/
|
| 25 |
|
| 26 |
+
# Install ALL dependencies from the lockfile (including devDependencies needed for build)
|
| 27 |
+
RUN npm ci
|
| 28 |
|
| 29 |
# Copy the rest of the application code
|
| 30 |
COPY . .
|