Skip to content

Commit b70e40d

Browse files
j-zimnowodaCopilot
andauthored
fix: Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 44f0428 commit b70e40d

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,12 @@ ARG CI=true
88
RUN mkdir /app
99
WORKDIR /app
1010

11-
# Install dependencies before copying the source code to take advantage of Docker layer caching
11+
# Install dependencies before copying the full source code to take advantage of Docker layer caching
1212
COPY package*.json ./
13-
RUN npm ci --ignore-scripts
13+
# Needed for postinstall (build:models) during npm ci
14+
COPY src/build-spec.ts ./src/build-spec.ts
15+
COPY src/openapi ./src/openapi
16+
RUN npm ci
1417

1518
COPY . .* ./
1619
RUN npm run build

0 commit comments

Comments
 (0)