chore(docker files): Change node version to 20
This commit is contained in:
parent
913c0bf280
commit
bcc3fbf099
2 changed files with 12 additions and 4 deletions
|
|
@ -2,12 +2,16 @@ FROM python:3.11-slim-bookworm
|
|||
|
||||
# Install Node.js and npm
|
||||
RUN apt-get update && apt-get install -y \
|
||||
nodejs \
|
||||
npm \
|
||||
|
||||
nginx \
|
||||
curl \
|
||||
redis-server
|
||||
|
||||
# Install Node.js 20 using NodeSource repository
|
||||
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
|
||||
apt-get install -y nodejs
|
||||
|
||||
|
||||
# Create a working directory
|
||||
WORKDIR /app
|
||||
|
||||
|
|
|
|||
|
|
@ -2,12 +2,16 @@ FROM python:3.11-slim-bookworm
|
|||
|
||||
# Install Node.js and npm
|
||||
RUN apt-get update && apt-get install -y \
|
||||
nodejs \
|
||||
npm \
|
||||
nginx \
|
||||
curl \
|
||||
redis-server
|
||||
|
||||
|
||||
# Install Node.js 20 using NodeSource repository
|
||||
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
|
||||
apt-get install -y nodejs
|
||||
|
||||
|
||||
# Change working directory
|
||||
WORKDIR /app
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue