Skip to content

Commit

Permalink
chore: Update Dockerfile to install Node.js and npm in a better way i…
Browse files Browse the repository at this point in the history
…n fedora and rhel
  • Loading branch information
TheophileDiot committed Aug 8, 2024
1 parent 04a2c7a commit 1f16121
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/linux/Dockerfile-fedora
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,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 dnf install -y nodejs npm
RUN curl -fsSL https://rpm.nodesource.com/setup_20.x | bash - && \
dnf install -y --setopt=install_weak_deps=False 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-rhel
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,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 dnf install -y nodejs npm
RUN curl -fsSL https://rpm.nodesource.com/setup_20.x | bash - && \
dnf install -y --setopt=install_weak_deps=False 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-rhel9
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ RUN export MAKEFLAGS="-j$(nproc)" && \
python3 -m 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 dnf install -y nodejs npm
RUN curl -fsSL https://rpm.nodesource.com/setup_20.x | bash - && \
dnf install -y --setopt=install_weak_deps=False nodejs

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

0 comments on commit 1f16121

Please sign in to comment.