Skip to content

Commit

Permalink
Upgrade node version to 20
Browse files Browse the repository at this point in the history
  • Loading branch information
juffalow committed May 25, 2024
1 parent de0d353 commit a96e415
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: 18
node-version: 20
cache: 'yarn'
- name: Install dependencies
run: yarn install
Expand All @@ -44,7 +44,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: 18
node-version: 20
cache: 'yarn'
- name: Install dependencies
run: yarn install
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM node:18-alpine AS build
FROM node:20-alpine AS build

WORKDIR /home/node

COPY . .
RUN yarn install --frozen-lockfile && yarn build

FROM node:18-alpine
FROM node:20-alpine

RUN addgroup --gid 3000 --system juffgroup \
&& adduser --uid 2000 --system --ingroup juffgroup juffuser
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ services:
image: mysql
restart: unless-stopped
env_file:
- ./.env
- ./.env
- ./.env.local
environment:
- MYSQL_DATABASE=${DATABASE_NAME}
Expand All @@ -16,7 +16,7 @@ services:
- 'mysql_data:/mysql/data'

application:
image: node:18-alpine
image: node:20-alpine
working_dir: /home/node
command: sh -c "yarn install --frozen-lockfile && yarn start"
depends_on:
Expand Down

0 comments on commit a96e415

Please sign in to comment.