Skip to content

Commit

Permalink
fix: Missing docker commands for adding yarn lock file and patches
Browse files Browse the repository at this point in the history
  • Loading branch information
FoxxMD committed Sep 5, 2023
1 parent 0f87c08 commit e165032
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ WORKDIR /app
FROM base as build

# copy NPM dependencies and install
COPY --chown=abc:abc package*.json ./
COPY --chown=abc:abc tsconfig.json .
COPY --chown=abc:abc package.json yarn.lock tsconfig.json ./
COPY --chown=abc:abc patches ./patches

RUN yarn add global patch-package && yarn install

Expand All @@ -41,6 +41,7 @@ RUN yarn run build && rm -rf node_modules
FROM base as app

COPY --from=build --chown=abc:abc /app /app
COPY --chown=abc:abc patches /app/patches

ENV NODE_ENV="production"

Expand Down

0 comments on commit e165032

Please sign in to comment.