Skip to content

Commit 7a68613

Browse files
authored
autoconf: Update autoconf image file to use Ubuntu distro (#13)
* autoconf: Update autoconf image file to use Ubuntu distro * Address code review * nit * Reset pipefail * fix
1 parent 064bd3e commit 7a68613

File tree

1 file changed

+14
-17
lines changed

1 file changed

+14
-17
lines changed

autoconf/Dockerfile

+14-17
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM docker.io/library/alpine:3.20
1+
FROM docker.io/library/ubuntu:22.04
22

33
ARG AUTOCONF_VERSION="2.71"
44
ARG AUTOCONF_ARCHIVE_VERSION="2023.02.20"
@@ -10,37 +10,34 @@ LABEL org.opencontainers.image.authors="Donghee Na"
1010
LABEL org.opencontainers.image.title="GNU Autoconf ${AUTOCONF_VERSION} container for CPython"
1111
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."
1212

13-
RUN apk upgrade && \
14-
apk add \
15-
curl \
16-
alpine-sdk \
17-
autoconf \
18-
automake \
19-
pkgconfig \
20-
xz
13+
RUN apt-get update && \
14+
apt-get install -yq \
15+
autotools-dev \
16+
autoconf \
17+
autoconf-archive \
18+
build-essential \
19+
curl \
20+
pkg-config
2121

22-
RUN set -o pipefail \
23-
&& curl https://ftp.gnu.org/gnu/autoconf/autoconf-${AUTOCONF_VERSION}.tar.gz | tar -zxf - \
22+
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
23+
RUN curl https://ftp.gnu.org/gnu/autoconf/autoconf-${AUTOCONF_VERSION}.tar.gz | tar -zxf - \
2424
&& cd autoconf-${AUTOCONF_VERSION} \
2525
&& ./configure --prefix=/usr/local \
2626
&& make \
2727
&& make install
28-
RUN set -o pipefail \
29-
&& curl https://ftp.gnu.org/gnu/automake/automake-${AUTOMAKE_VERSION}.tar.gz | tar -xzf - \
28+
RUN curl https://ftp.gnu.org/gnu/automake/automake-${AUTOMAKE_VERSION}.tar.gz | tar -xzf - \
3029
&& cd automake-${AUTOMAKE_VERSION} \
3130
&& ./configure --prefix=/usr/local \
3231
&& make \
3332
&& make install
34-
RUN set -o pipefail \
35-
&& curl https://ftp.gnu.org/gnu/autoconf-archive/autoconf-archive-${AUTOCONF_ARCHIVE_VERSION}.tar.xz | xz -cd - | tar -xf - \
33+
RUN curl https://ftp.gnu.org/gnu/autoconf-archive/autoconf-archive-${AUTOCONF_ARCHIVE_VERSION}.tar.xz | xz -cd - | tar -xf - \
3634
&& cd autoconf-archive-${AUTOCONF_ARCHIVE_VERSION} \
3735
&& ./configure --prefix=/usr/local \
3836
&& make \
3937
&& make install
4038

4139
# https://stackoverflow.com/questions/8811381/possibly-undefined-macro-ac-msg-error/49103418#49103418
42-
RUN set -o pipefail \
43-
&& cp /usr/local/share/aclocal/*.m4 /usr/share/aclocal \
40+
RUN cp /usr/local/share/aclocal/*.m4 /usr/share/aclocal \
4441
&& cp /usr/share/aclocal/*.m4 /usr/local/share/aclocal
4542

4643
VOLUME /src

0 commit comments

Comments
 (0)