Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update yarn #9

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .env.yarn
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
DEBUG=testcontainers*
NODE_OPTIONS=--dns-result-order=ipv4first
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
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ This project is currently configured to run all dependent services in containers

To start the app, follow these steps:

1. Ensure you have [Node](https://nodejs.org) and [yarn](https://classic.yarnpkg.com/lang/en/docs/install/#mac-stable) installed on your machine.
1. Ensure you have [Node 22+](https://nodejs.org) installed on your machine.

2. Start all of the application dependencies

Expand All @@ -45,6 +45,7 @@ To start the app, follow these steps:
3. Install the app dependencies and start the main app with the following command:

```console
corepack enable
yarn install
yarn dev
```
Expand Down
Loading
Loading