-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile.ci-build
More file actions
50 lines (46 loc) · 1.3 KB
/
Dockerfile.ci-build
File metadata and controls
50 lines (46 loc) · 1.3 KB
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
42
43
44
45
46
47
48
49
50
FROM ubuntu:22.04
RUN apt update && \
apt upgrade -y && \
DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt install -y \
build-essential \
ca-certificates \
curl \
git \
gnupg \
libbz2-dev \
libffi-dev \
libicu70 \
liblzma-dev \
libncursesw5-dev \
libreadline-dev \
libsqlite3-dev \
libssl-dev \
libxml2-dev \
libxmlsec1-dev \
llvm \
lsb-release \
make \
python3 \
tar \
tk-dev \
unzip \
wget \
xz-utils \
zip \
zlib1g-dev && \
apt clean && \
rm -rf /var/lib/apt/lists/*
WORKDIR /root
RUN git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.13.1 && \
echo ". $HOME/.asdf/asdf.sh" >> ~/.bashrc && \
echo ". $HOME/.asdf/completions/asdf.bash" >> ~/.bashrc && \
echo "export ASDF_DIR=$HOME/.asdf" >> ~/.bashrc && \
echo "export PATH=\$ASDF_DIR/bin:\$PATH" >> ~/.bashrc && \
echo "export PATH=\$ASDF_DIR/shims:\$PATH" >> ~/.bashrc
COPY .tool-versions .
RUN for plugin in $(cat .tool-versions | cut -d' ' -f1); do \
./.asdf/bin/asdf plugin add "${plugin}"; \
done && \
./.asdf/bin/asdf install && \
ln -s $(pwd)/.asdf/shims/* /usr/local/bin/.
CMD [ "/bin/bash" ]