Skip to content

Commit

Permalink
👷 Set Node version to LTS
Browse files Browse the repository at this point in the history
Updating pipelines, Dockerfile's and .node-version file

Recommend using [fnm](https://github.com/Schniz/fnm) for versioning
locally on your developer machine.
  • Loading branch information
TheKnarf committed Feb 1, 2024
1 parent fdbe50b commit 125ba2b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/actions/yarn-install/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ runs:
using: 'composite'
steps:
- name: 'Setting up Node'
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20

- name: 'Getting yarn cache directory path'
id: yarn-cache-dir-path
Expand Down
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20.11.0
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Use an official Node.js runtime as a parent image
FROM node:18 as frontend
FROM node:20 as frontend

# Set the working directory in the container
WORKDIR /app
Expand All @@ -20,7 +20,7 @@ RUN yarn build
RUN find . -maxdepth 1 -type f ! -path "./dist/*" -delete

# Create a new image based on the "bff-node" project
FROM node:18
FROM node:20

# Set the working directory in the container
WORKDIR /app
Expand All @@ -36,4 +36,4 @@ COPY ./bff-node ./
EXPOSE 80

# Start the "bff-node" server (modify the startup command as needed)
CMD ["yarn", "start"]
CMD ["yarn", "start"]
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"engines": {
"node": ">=20.0"
}
}

0 comments on commit 125ba2b

Please sign in to comment.