Skip to content

Commit 96845b5

Browse files
Revert "docker image time optimization v1"
This reverts commit 12c3c8f.
1 parent b56bb21 commit 96845b5

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/App/Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@ WORKDIR /app/frontend
88
# Copy package files first for better caching
99
COPY package*.json ./
1010

11-
# Install dependencies once (cached unless package*.json changes)
12-
# npm rebuild esbuild --force ensures the correct platform binary inside the Linux image
13-
RUN npm ci && npm rebuild esbuild --force
11+
# Install dependencies
12+
RUN npm ci --silent
1413

15-
# Copy source files (node_modules excluded by .dockerignore)
14+
# Copy source files
1615
COPY . ./
1716

17+
RUN rm -rf node_modules && npm ci && npm rebuild esbuild --force
18+
1819
# Build the React app
1920
RUN npm run build
2021

0 commit comments

Comments
 (0)