Skip to content

Commit

Permalink
Updating yarn to current version
Browse files Browse the repository at this point in the history
  • Loading branch information
mikesir87 committed Dec 23, 2024
1 parent fed72ad commit 417c59b
Show file tree
Hide file tree
Showing 7 changed files with 7,871 additions and 5,011 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/.yarn/releases/** binary
/.yarn/plugins/** binary
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Yarn setup
.yarn/*
!.yarn/cache
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

# Ignore built files
dist/
build/
Expand Down
934 changes: 934 additions & 0 deletions .yarn/releases/yarn-4.5.3.cjs

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.5.3.cjs
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ RUN npm uninstall npm -g
# Setup a non-root user to run the app
WORKDIR /usr/local/app
RUN useradd -m appuser && chown -R appuser /usr/local/app
COPY package.json yarn.lock ./
RUN corepack enable
USER appuser


Expand All @@ -26,7 +28,6 @@ USER appuser
###########################################################
FROM base AS dev
ENV NODE_ENV=development
COPY package.json yarn.lock ./
RUN yarn install
CMD ["yarn", "dev-container"]

Expand All @@ -39,8 +40,7 @@ CMD ["yarn", "dev-container"]
###########################################################
FROM base AS final
ENV NODE_ENV=production
COPY package.json yarn.lock ./
RUN yarn install && yarn cache clean --force
RUN yarn install && yarn cache clean
COPY ./src ./src

EXPOSE 3000
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@
"prettier --write"
]
},
"packageManager": "yarn@1.22.21+sha1.1959a18351b811cdeedbd484a8f86c3cc3bbaf72"
"packageManager": "yarn@4.5.3"
}
Loading

0 comments on commit 417c59b

Please sign in to comment.