Skip to content

Commit 1bf60ac

Browse files
DockerFile Changes for Frontend
Signed-off-by: cogniware-devops <ambarish.desai@cogniware.ai>
1 parent 1969e76 commit 1bf60ac

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

CogniwareIms/frontend/Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@ RUN apk add --no-cache libc6-compat
77
WORKDIR /app
88

99
# Install dependencies (including dev dependencies for build)
10-
COPY frontend/package.json frontend/package-lock.json* ./
11-
RUN npm ci
10+
# Copy package files - ensure both are copied explicitly
11+
COPY frontend/package.json ./
12+
COPY frontend/package-lock.json ./
13+
# Use npm ci for deterministic builds (requires package-lock.json)
14+
RUN npm ci --legacy-peer-deps || (echo "Warning: npm ci failed, falling back to npm install" && npm install --legacy-peer-deps)
1215

1316
# Rebuild the source code only when needed
1417
FROM base AS builder

CogniwareIms/tests/test_gmc_on_xeon.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,4 @@ function main() {
9696
}
9797

9898
main
99+

0 commit comments

Comments
 (0)