Skip to content

Commit 219a230

Browse files
committed
Bump to Ubuntu 22.04, add Python 3.12, drop Python 3.7
Signed-off-by: Stephen Finucane <stephen@that.guru>
1 parent 6fa0cb6 commit 219a230

File tree

1 file changed

+31
-25
lines changed

1 file changed

+31
-25
lines changed

Dockerfile

+31-25
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,29 @@
1-
FROM ubuntu:20.04 AS base
1+
FROM ubuntu:22.04 AS base
22

33
ENV LANG="C.UTF-8"
44
ENV LC_ALL="C.UTF-8"
55
ENV PATH="/opt/pyenv/shims:/opt/pyenv/bin:$PATH"
66
ENV PYENV_ROOT="/opt/pyenv"
77
ENV PYENV_SHELL="bash"
8+
ENV DEBIAN_FRONTEND=noninteractive
89

910
# runtime dependencies
1011
RUN 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

2729
RUN 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
3335
FROM 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 \

0 commit comments

Comments
 (0)