Skip to content

Commit

Permalink
build: Update Node.js setup and base image in Dockerfile
Browse files Browse the repository at this point in the history
- Update Node.js setup version from `18.x` to `20.x`
- Correct package installation command for RHEL, CentOS, CloudLinux, Amazon Linux, or Fedora
- Update base image in Dockerfile from `node:18-slim` to `node:20-slim`
- Update maintainer label in Dockerfile
- Update base image in Dockerfile from `node:18-alpine` to `node:20-alpine`
  • Loading branch information
cokemine committed Jul 11, 2024
1 parent 371c9cc commit 0796c37
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18-slim as builder
FROM node:20-slim as builder

LABEL maintainer="Kagurazaka Mizuki"

Expand All @@ -21,7 +21,7 @@ RUN if [ "$USE_CHINA_MIRROR" = 1 ]; then \
&& pnpm build


FROM node:18-alpine as app
FROM node:20-alpine as app

WORKDIR /app

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ mv /usr/local/NodeStatus/db.sqlite /usr/local/NodeStatus/db.sqlite.bak
```bash
# Install Node.js
# Using Ubuntu
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt-get install -y nodejs

# Using Debian, as root
curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
apt-get install -y nodejs

# RHEL, CentOS, CloudLinux, Amazon Linux or Fedora as root
curl -fsSL https://rpm.nodesource.com/setup_18.x | bash -
curl -fsSL https://rpm.nodesource.com/setup_20.x | bash -


#Install From NPM
Expand Down

0 comments on commit 0796c37

Please sign in to comment.