2023-11-06 21:10:38 +01:00
|
|
|
FROM catthehacker/ubuntu:act-latest
|
2023-12-09 18:17:17 +01:00
|
|
|
|
2023-11-06 21:10:38 +01:00
|
|
|
RUN sudo apt update
|
|
|
|
RUN sudo apt upgrade -y
|
|
|
|
RUN sudo apt install -y nano curl wget zip unzip tree
|
|
|
|
|
|
|
|
# install python3.10
|
|
|
|
RUN sudo apt install -y build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev wget libbz2-dev && \
|
|
|
|
wget https://www.python.org/ftp/python/3.10.12/Python-3.10.12.tgz && \
|
|
|
|
tar -xf Python-3.10.*.tgz && \
|
|
|
|
cd Python-3.10.*/ && \
|
|
|
|
./configure --prefix=/usr/local --enable-optimizations --enable-shared LDFLAGS="-Wl,-rpath /usr/local/lib" && \
|
|
|
|
make -j $(nproc) && \
|
|
|
|
sudo make altinstall && \
|
|
|
|
python3.10 -m pip install --user --upgrade pip && \
|
|
|
|
cd ../ && sudo rm -rf Python-3.10.*/
|