fix(docker) : update dependencies

For further compatibility and ease of usage, additional dependencies
like `g++` and `make` is included, which may be needed for certain
plugins. In addition, the default node version is 12 in `ubuntu:latest`,
this issue is handled by manual installation of node18.
This commit is contained in:
Tuna Alikaşifoğlu 2023-02-21 19:22:02 +03:00
parent 66959da23e
commit 4814ef033b
No known key found for this signature in database
GPG Key ID: 16FE1DF5037D8B61

View File

@ -1,18 +1,26 @@
FROM ubuntu:latest FROM ubuntu:latest
# Install dependencies # Install dependencies
RUN apt update && apt install -y \ RUN apt update && apt upgrade -y
RUN apt install -y \
curl \ curl \
wget \ wget \
make \
g++ \
gzip \ gzip \
unzip \ unzip \
git \ git \
npm \
python3 \ python3 \
python3-venv \
cargo \ cargo \
ripgrep \ ripgrep \
fd-find fd-find
RUN apt remove -y nodejs npm && \
curl -sL https://deb.nodesource.com/setup_18.x -o nodesource_setup.sh && \
bash nodesource_setup.sh && \
apt install -y nodejs
# Installation Settings # Installation Settings
# branch can be nightly # branch can be nightly
ENV BRANCH=stable ENV BRANCH=stable