New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suggestions #9
Suggestions #9
Conversation
RUN apk upgrade && \ | ||
apk add \ | ||
alpine-sdk \ | ||
autoconf \ | ||
automake \ | ||
autoconf-archive \ | ||
libtool \ | ||
pkgconfig |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See https://docs.docker.com/develop/develop-images/instructions/#apt-get
Why is pkgconfig
and alpine-sdk
required? Is it because we build GNU Autoconf from scratch later?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes :)
|
||
VOLUME /src | ||
WORKDIR /src | ||
|
||
ADD entry.sh / | ||
CMD ["/entry.sh"] | ||
CMD ["/entry.sh"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ooops, this was unintentional (I blame the GitHub UI editor)
if [ "$#" = "0" ]; then | ||
echo "Rebuilding configure script using $(autoconf --version | head -n 1)" | ||
exec gosu autoreconf -ivf -Werror $@ | ||
fi | ||
|
||
exec "$@" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it can be nice to be able to run with arbitrary commands. For example:
$ docker run --rm -v$PWD:/src ghcr.io/corona10/cpython_autoconf:272-final autoconf --version
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, gosu
is perhaps overkill, but you never know. We may have to install it explicitly, though.
No description provided.