Skip to content

Commit

Permalink
Switch to Node.js v20, update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
mkopa committed Oct 24, 2023
1 parent 7678cd6 commit 8443634
Show file tree
Hide file tree
Showing 5 changed files with 1,280 additions and 789 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
name: Build and test
strategy:
matrix:
node-version: [ 18 ]
node-version: [ 20 ]
steps:
- uses: actions/checkout@v2
- run: npm i
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,19 @@ localhost:3000/tasks/:id

```bash
$ cp .env.dist .env
$ cp docker-compose.override.dist docker-compose.override
$ cp docker-compose.override.yml.dist docker-compose.override.yml
$ npm install
```

`
Used docker-compose version: 1.29.2, Nodejs: 18.17.1
Used Nodejs v20.9.0
`

## Running the back-end

```bash
# start db
$ docker-compose up -d postgres
$ docker compose up -d postgres

# development
$ npm run start
Expand All @@ -64,7 +64,7 @@ $ npm run start:dev
$ npm run start:prod

# create a docker backend-service image and run the app
$ docker-compose up
$ docker compose up
```

## Test
Expand Down
4 changes: 2 additions & 2 deletions docker/backend/prod/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM node:18-alpine as build
FROM node:20-alpine as build

WORKDIR /app

COPY . ./

RUN npm i && npm run build

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

WORKDIR /app

Expand Down
Loading

0 comments on commit 8443634

Please sign in to comment.