File tree Expand file tree Collapse file tree 1 file changed +31
-25
lines changed Expand file tree Collapse file tree 1 file changed +31
-25
lines changed Original file line number Diff line number Diff line change 1- FROM ubuntu:20 .04 AS base
1+ FROM ubuntu:22 .04 AS base
22
33ENV LANG="C.UTF-8"
44ENV LC_ALL="C.UTF-8"
55ENV PATH="/opt/pyenv/shims:/opt/pyenv/bin:$PATH"
66ENV PYENV_ROOT="/opt/pyenv"
77ENV PYENV_SHELL="bash"
8+ ENV DEBIAN_FRONTEND=noninteractive
89
910# runtime dependencies
1011RUN apt-get update --quiet && \
1112 apt-get install -y --no-install-recommends \
12- bzip2 \
13- ca-certificates \
1413 curl \
14+ ca-certificates \
1515 git \
16- libexpat1 \
17- libffi7 \
18- libmpdec2 \
19- libncursesw5 \
20- libncursesw6 \
21- libreadline5 \
16+ libbz2-1.0 \
17+ libffi8 \
18+ # libncursesw5 \
19+ libreadline8 \
2220 libsqlite3-0 \
23- libssl1.1 \
24- lzma \
21+ libssl3 \
22+ # libxml2 \
23+ # libxmlsec1 \
24+ liblzma5 \
25+ # tk \
26+ xz-utils \
2527 zlib1g
2628
2729RUN curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash && \
@@ -33,24 +35,28 @@ RUN curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-instal
3335FROM base as build
3436
3537# builder dependencies
36- RUN apt-get update && apt-get install -y --no-install-recommends \
37- build-essential \
38- ca-certificates \
39- curl \
40- git \
41- libbz2-dev \
42- libffi-dev \
43- libreadline-dev \
44- libsqlite3-dev \
45- default-libmysqlclient-dev \
46- libssl-dev \
47- zlib1g-dev
38+ RUN apt-get update --quiet && \
39+ apt-get install -y --no-install-recommends \
40+ build-essential \
41+ curl \
42+ libbz2-dev \
43+ libffi-dev \
44+ liblzma-dev \
45+ # libncursesw5-dev \
46+ libreadline-dev \
47+ libsqlite3-dev \
48+ libssl-dev \
49+ # libxml2-dev \
50+ # libxmlsec1-dev \
51+ # tk-dev \
52+ xz-utils \
53+ zlib1g-dev
4854
49- RUN pyenv install 3.7 && \
50- pyenv install 3.8 && \
55+ RUN pyenv install 3.8 && \
5156 pyenv install 3.9 && \
5257 pyenv install 3.10 && \
5358 pyenv install 3.11 && \
59+ pyenv install 3.12 && \
5460 pyenv global $(pyenv versions --bare | tac) && \
5561 pyenv versions && \
5662 find ${PYENV_ROOT}/versions -depth \
You can’t perform that action at this time.
0 commit comments