mirror of
https://github.com/bensuperpc/dockcross.git
synced 2024-11-09 20:57:26 +01:00
edf132509b
To ensure that our custom sudo wrapper is not overwritten by a future re-install of sudo, it is created in /usr/loca/bin See https://github.com/dockbuild/dockbuild/issues/52
32 lines
819 B
Plaintext
32 lines
819 B
Plaintext
# Image build scripts
|
|
COPY \
|
|
imagefiles/install-gosu-binary.sh \
|
|
imagefiles/install-gosu-binary-wrapper.sh \
|
|
manylinux-common/install-python-packages.sh \
|
|
/buildscripts/
|
|
|
|
RUN \
|
|
set -x && \
|
|
yum -y install \
|
|
epel-release \
|
|
gpg \
|
|
zlib-devel \
|
|
gettext \
|
|
openssh-clients \
|
|
pax \
|
|
wget \
|
|
zip \
|
|
&& \
|
|
yum clean all && \
|
|
/buildscripts/install-gosu-binary.sh && \
|
|
/buildscripts/install-gosu-binary-wrapper.sh && \
|
|
# Remove sudo provided by "devtoolset-2" and "devtoolset-8" since it doesn't work with
|
|
# our sudo wrapper calling gosu.
|
|
rm -f /opt/rh/devtoolset-2/root/usr/bin/sudo && \
|
|
rm -f /opt/rh/devtoolset-8/root/usr/bin/sudo && \
|
|
/buildscripts/install-python-packages.sh && \
|
|
rm -rf /buildscripts
|
|
|
|
# Runtime scripts
|
|
COPY manylinux-common/pre_exec.sh /dockcross/
|