mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
chore: Update Dockerfile to install Node.js and npm in a better way in fedora and rhel
This commit is contained in:
parent
04a2c7ae08
commit
1f1612165a
3 changed files with 6 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue