Skip to content

Commit

Permalink
Dockerfile: add build args for versions, and install automake and aut…
Browse files Browse the repository at this point in the history
…oconf-archive
  • Loading branch information
erlend-aasland committed Mar 3, 2024
1 parent c8bfd66 commit d0c99af
Showing 1 changed file with 25 additions and 7 deletions.
32 changes: 25 additions & 7 deletions Dockerfile
@@ -1,21 +1,39 @@
FROM docker.io/library/alpine:3.19

ARG AUTOCONF_VERSION="2.71"
ARG AUTOCONF_ARCHIVE_VERSION="2023.02.20"
ARG AUTOMAKE_VERSION="1.16.5"

LABEL org.opencontainers.image.source="https://github.com/corona10/cpython_autoconf"
LABEL org.opencontainers.image.base.name="docker.io/library/alpine:3.19"
LABEL org.opencontainers.image.authors="Donghee Na"
LABEL org.opencontainers.image.title="autoconf 2.72 container for CPython"
LABEL org.opencontainers.image.description="Container image with autoconf 2.72 tools to regenerate Python's configure script."
LABEL org.opencontainers.image.title="GNU Autoconf ${AUTOCONF_VERSION} container for CPython"
LABEL org.opencontainers.image.description="Container image with GNU Autoconf ${AUTOCONF_VERSION}, GNU Automake ${AUTOMAKE_VERSION}, and autoconf-archive ${AUTOCONF_ARCHIVE_VERSION} for generating CPython's configure script."

RUN apk upgrade && \
apk add \
alpine-sdk \
autoconf \
automake \
autoconf-archive \
libtool \
pkgconfig
RUN curl https://ftp.gnu.org/gnu/autoconf/autoconf-2.72.tar.gz | tar -zxvf -
RUN cd autoconf-2.72 && ./configure && make && make install
xz
RUN set -o pipefail \
&& curl https://ftp.gnu.org/gnu/autoconf/autoconf-${AUTOCONF_VERSION}.tar.gz | tar -zxf - \
&& cd autoconf-${AUTOCONF_VERSION} \
&& ./configure --prefix=/usr/local \
&& make \
&& make install
RUN set -o pipefail \
&& curl https://ftp.gnu.org/gnu/automake/automake-${AUTOMAKE_VERSION}.tar.gz | tar -xzf - \
&& cd automake-${AUTOMAKE_VERSION} \
&& ./configure --prefix=/usr/local \
&& make \
&& make install
RUN set -o pipefail \
&& curl https://ftp.gnu.org/gnu/autoconf-archive/autoconf-archive-${AUTOCONF_ARCHIVE_VERSION}.tar.xz | xz -cd - | tar -xf - \
&& cd autoconf-archive-${AUTOCONF_ARCHIVE_VERSION} \
&& ./configure --prefix=/usr/local \
&& make \
&& make install

VOLUME /src
WORKDIR /src
Expand Down

0 comments on commit d0c99af

Please sign in to comment.