Skip to content

Commit

Permalink
chore: must copy patch files before npm install
Browse files Browse the repository at this point in the history
  • Loading branch information
SangeetAgarwal committed Nov 28, 2023
1 parent fd8d8f7 commit ce087b8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ FROM base as deps
WORKDIR /myapp

ADD package.json package-lock.json .npmrc ./
COPY ./patches ./patches
RUN npm install --include=dev

# Setup production node_modules
Expand All @@ -19,6 +20,7 @@ WORKDIR /myapp

COPY --from=deps /myapp/node_modules /myapp/node_modules
ADD package.json package-lock.json .npmrc ./
COPY ./patches ./patches
RUN npm prune --omit=dev

# Build the app
Expand Down

0 comments on commit ce087b8

Please sign in to comment.