diff --git a/Dockerfile b/Dockerfile index 6a740c3c..cc303b52 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/Dockerfile.dev b/Dockerfile.dev index 326057af..3c84ac4b 100644 --- a/Dockerfile.dev +++ b/Dockerfile.dev @@ -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