Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

chore: update dockerfile

Steven749187e1e997
diff --git a/.github/workflows/frontend-tests.yml b/.github/workflows/frontend-tests.yml
index 06bfabb20..3b98772e9 100644
--- a/.github/workflows/frontend-tests.yml
+++ b/.github/workflows/frontend-tests.yml
@@ -20,7 +20,7 @@ jobs:
version: 8
- uses: actions/setup-node@v4
with:
- node-version: "18"
+ node-version: "20"
cache: pnpm
cache-dependency-path: "web/pnpm-lock.yaml"
- run: pnpm install
@@ -40,7 +40,7 @@ jobs:
version: 8
- uses: actions/setup-node@v4
with:
- node-version: "18"
+ node-version: "20"
cache: pnpm
cache-dependency-path: "web/pnpm-lock.yaml"
- run: pnpm install
diff --git a/Dockerfile b/Dockerfile
index 59d941e7d..1a6b520eb 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,5 +1,5 @@
# Build frontend dist.
-FROM node:18-alpine AS frontend
+FROM node:20-alpine AS frontend
WORKDIR /frontend-build
COPY . .
diff --git a/docker-compose.dev.yaml b/docker-compose.dev.yaml
index 2c1e07d97..6e4039dbb 100644
--- a/docker-compose.dev.yaml
+++ b/docker-compose.dev.yaml
@@ -15,7 +15,7 @@ services:
- .air/go-build:/root/.cache/go-build
- $HOME/go/pkg/:/go/pkg/ # Cache for go mod shared with the host
web:
- image: node:18-alpine
+ image: node:20-alpine
working_dir: /work
depends_on: ["api"]
ports: ["3001:3001"]
@@ -61,7 +61,7 @@ services:
# run npm
npm:
profiles: ["tools"]
- image: node:18-alpine
+ image: node:20-alpine
working_dir: /work
environment: ["NPM_CONFIG_UPDATE_NOTIFIER=false"]
entrypoint: "npm"