Skip to content

Commit

Permalink
chore: Update node and npm installation in Dockerfiles
Browse files Browse the repository at this point in the history
The Dockerfiles for the Linux images have been updated to use the latest version of node and npm. This change improves the build process for the vite frontend by ensuring that the correct versions of node and npm are installed.
  • Loading branch information
TheophileDiot committed Aug 8, 2024
1 parent 727a6b0 commit c61f0d1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/linux/Dockerfile-debian
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ RUN export MAKEFLAGS="-j$(nproc)" && \
pip install --break-system-packages --no-cache-dir --require-hashes --target deps/python $(for file in $(ls /tmp/req/requirements*.txt) ; do echo "-r ${file}" ; done | xargs)

# Install node and npm to build vite frontend
RUN apt-get install -y --no-install-recommends nodejs npm
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
apt-get install -y --no-install-recommends nodejs

# Copy files
# can't exclude deps from . so we are copying everything by hand
Expand Down
3 changes: 2 additions & 1 deletion src/linux/Dockerfile-ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ RUN export MAKEFLAGS="-j$(nproc)" && \
pip install --no-cache-dir --require-hashes --break-system-packages --target deps/python $(for file in $(ls /tmp/req/requirements*.txt) ; do echo "-r ${file}" ; done | xargs)

# Install node and npm to build vite frontend
RUN apt-get install -y --no-install-recommends nodejs npm
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
apt-get install -y --no-install-recommends nodejs

# Copy files
# can't exclude deps from . so we are copying everything by hand
Expand Down
5 changes: 3 additions & 2 deletions src/linux/Dockerfile-ubuntu-jammy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:22.04@sha256:340d9b015b194dc6e2a13938944e0d016e57b9679963fdeb9ce021daac430221 as builder
FROM ubuntu:22.04@sha256:340d9b015b194dc6e2a13938944e0d016e57b9679963fdeb9ce021daac430221 AS builder

ENV OS=ubuntu
ENV NGINX_VERSION=1.26.1
Expand Down Expand Up @@ -40,7 +40,8 @@ RUN export MAKEFLAGS="-j$(nproc)" && \
pip install --no-cache-dir --require-hashes --target deps/python $(for file in $(ls /tmp/req/requirements*.txt) ; do echo "-r ${file}" ; done | xargs)

# Install node and npm to build vite frontend
RUN apt-get install -y --no-install-recommends nodejs npm
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
apt-get install -y --no-install-recommends nodejs

# Copy files
# can't exclude deps from . so we are copying everything by hand
Expand Down

0 comments on commit c61f0d1

Please sign in to comment.