-
Notifications
You must be signed in to change notification settings - Fork 63
/
Copy pathlinux_docker
29 lines (29 loc) · 1.37 KB
/
linux_docker
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
FROM ubuntu:18.04
WORKDIR /root
RUN echo "install requirements"
RUN apt-get update -y
RUN apt-get upgrade -y
RUN apt-get install curl git -y
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install tzdata -y
RUN apt install wget build-essential checkinstall -y
RUN apt install libreadline-gplv2-dev libncursesw5-dev libssl-dev \
libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev zlib1g-dev -y
RUN apt-get install python3-dev python-dev pkg-config build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev wget libbz2-dev -y
RUN apt-get install python3 -y
RUN apt-get install build-essential gdb lcov pkg-config -y
RUN apt-get install libbz2-dev libffi-dev libgdbm-dev libgdbm-compat-dev liblzma-dev -y
RUN apt-get install libncurses5-dev libreadline6-dev libsqlite3-dev libssl-dev -y
RUN apt-get install lzma lzma-dev tk-dev uuid-dev zlib1g-dev -y
RUN echo "get and extract python"
RUN wget https://www.python.org/ftp/python/3.11.4/Python-3.11.4.tar.xz
RUN tar -xf Python-3.11.4.tar.xz
RUN echo "set enviroment variable"
RUN echo "install from source"
WORKDIR Python-3.11.4
RUN ./configure --enable-optimizations --enable-shared
RUN make -j $(nproc)
RUN make altinstall
RUN echo "install poetry"
ENV LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib
RUN curl -sSL https://install.python-poetry.org | python3.11
WORKDIR /root