fix: Adding Node to Dockerfile (#7735)

adding node to dockerfile
This commit is contained in:
Yuqi Tang 2025-04-22 14:32:27 -07:00 committed by GitHub
commit 34ad59533b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 9 additions and 2 deletions

View file

@ -68,7 +68,9 @@ FROM python:3.12.3-slim AS runtime
RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y git libpq5 curl \
&& apt-get install -y curl git libpq5 gnupg \
&& curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \
&& apt-get install -y nodejs \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& useradd user -u 1000 -g 0 --no-create-home --home-dir /app/data

View file

@ -73,7 +73,9 @@ FROM python:3.12.3-slim AS runtime
RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y git libpq5 curl \
&& apt-get install -y git libpq5 curl gnupg \
&& curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \
&& apt-get install -y nodejs \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& useradd user -u 1000 -g 0 --no-create-home --home-dir /app/data

View file

@ -73,6 +73,9 @@ RUN apt-get update \
git \
# Add PostgreSQL client libraries
libpq5 \
gnupg \
&& curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \
&& apt-get install -y nodejs \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& useradd user -u 1000 -g 0 --no-create-home --home-dir /app/data \