-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdebian.dockerfile
41 lines (32 loc) · 1.55 KB
/
debian.dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
FROM cimg/base:2024.12
LABEL maintainer="Jonathan Cardoso Machado <https://twitter.com/_jonathancardos>"
# Install missing packages
RUN sudo apt-get update \
&& sudo apt-get install -y \
texinfo gperf ruby-ronn cmake libtool python3 pip \
&& sudo rm -rf /var/lib/apt/lists/*
# Update automake
RUN echo "Downloading automake" && cd ~ && wget ftp://ftp.gnu.org/gnu/automake/automake-1.17.tar.gz \
&& echo "Untar automake dist file" && tar -xzf automake-1.17.tar.gz && cd automake-1.17 \
&& echo "Building and installing automake" && ./configure && make && sudo make install
# Install nvm
ARG DEFAULT_NODEJS_VERSION="22"
ENV DEFAULT_NODEJS_VERSION=$DEFAULT_NODEJS_VERSION
SHELL ["/bin/bash", "-c"]
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
RUN echo $'\n\
export NVM_DIR="$HOME/.nvm"\n\
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm\n\
[ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion" # This loads nvm bash_completion' > ~/.bashrc
RUN source /home/circleci/.bashrc \
&& nvm install 18 \
&& nvm install 20 \
&& nvm install 21 \
&& nvm install 22 \
&& nvm install 23 \
&& nvm use $DEFAULT_NODEJS_VERSION
# Yarn
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - && \
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list && \
sudo apt-get update && sudo apt-get install --no-install-recommends yarn && \
echo 'export PATH="$(yarn global bin):$PATH"' >> ~/.bashrc