From c5f855c0981ae0581d08b73c2ca04b7534b77259 Mon Sep 17 00:00:00 2001 From: rockleona Date: Wed, 7 Feb 2024 14:13:09 +0800 Subject: [PATCH 1/2] fix: docker dev error, json-server version specify --- Dockerfile | 2 +- dev.Dockerfile | 2 +- mock-server.Dockerfile | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 736c690de2..f32e540dda 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:12.20.2-buster-slim +FROM node:14.21.3-buster-slim WORKDIR /usr/local diff --git a/dev.Dockerfile b/dev.Dockerfile index b75c11527b..d3f8b3a0c1 100644 --- a/dev.Dockerfile +++ b/dev.Dockerfile @@ -1,4 +1,4 @@ -FROM node:12.20.2 +FROM node:14.21.3 WORKDIR /app diff --git a/mock-server.Dockerfile b/mock-server.Dockerfile index cc338db39b..487902f68a 100644 --- a/mock-server.Dockerfile +++ b/mock-server.Dockerfile @@ -1,8 +1,8 @@ -FROM node:12.20.2-buster-slim +FROM node:14.21.3-buster-slim WORKDIR /usr/local -RUN npm install -g json-server +RUN npm install -g json-server@0.16.3 COPY db.json routes.json json-server-middlewares.js ./ From 2e3139a6f378323183c3e4fe3ed0d00c07c8da2a Mon Sep 17 00:00:00 2001 From: rockleona Date: Thu, 15 Feb 2024 09:44:03 +0800 Subject: [PATCH 2/2] chore: update node version in files --- .nvmrc | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.nvmrc b/.nvmrc index 21cff1fb03..1821c1ce2d 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -14.18.1 \ No newline at end of file +14.21.3 \ No newline at end of file diff --git a/README.md b/README.md index df9314705f..1357b3f066 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Frontend of PyCon TW official website. ### Requirements -- node >= 12.20.2 +- node >= 14.21.3 > You can refer to `package.json` file for more details.