Skip to content

Commit

Permalink
Ubuntu 24.04
Browse files Browse the repository at this point in the history
  • Loading branch information
dmalan committed Apr 26, 2024
1 parent 04f77fc commit 166b234
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build stage
FROM ubuntu:22.04 as builder
FROM ubuntu:24.04 as builder


# Build-time variables
Expand Down Expand Up @@ -61,16 +61,16 @@ RUN apt update && \
# Install Python 3.12.x
# https://www.python.org/downloads/
RUN cd /tmp && \
curl --remote-name https://www.python.org/ftp/python/3.12.2/Python-3.12.2.tgz && \
tar xzf Python-3.12.2.tgz && \
rm --force Python-3.12.2.tgz && \
cd Python-3.12.2 && \
curl --remote-name https://www.python.org/ftp/python/3.12.3/Python-3.12.3.tgz && \
tar xzf Python-3.12.3.tgz && \
rm --force Python-3.12.3.tgz && \
cd Python-3.12.3 && \
CFLAGS="-Os" ./configure --disable-static --enable-optimizations --enable-shared --with-lto --without-tests && \
./configure && \
make && \
make install && \
cd .. && \
rm --force --recursive Python-3.12.2 && \
rm --force --recursive Python-3.12.3 && \
ln --relative --symbolic /usr/local/bin/pip3 /usr/local/bin/pip && \
ln --relative --symbolic /usr/local/bin/python3 /usr/local/bin/python && \
pip3 install --no-cache-dir --upgrade pip
Expand Down

0 comments on commit 166b234

Please sign in to comment.