common.dockcross: Split minimal "dockcross" from 'debian' and 'docker'

This commit is contained in:
Nathan Genetzky
2020-06-25 19:10:05 -05:00
parent 0c663c2f63
commit e2d20c0626
2 changed files with 28 additions and 1 deletions

26
common.dockcross Normal file
View File

@ -0,0 +1,26 @@
WORKDIR /usr/src
# Image build scripts
COPY \
imagefiles/install-gosu-binary.sh \
imagefiles/install-gosu-binary-wrapper.sh \
/buildscripts/
RUN \
apt-get update --yes && \
apt-get install --no-install-recommends --yes \
curl \
dirmngr \
gpg \
&& \
apt-get clean --yes && \
/buildscripts/install-gosu-binary.sh && \
/buildscripts/install-gosu-binary-wrapper.sh && \
rm -rf /buildscripts
RUN echo "root:root" | chpasswd
WORKDIR /work
ENTRYPOINT ["/dockcross/entrypoint.sh"]
# Runtime scripts
COPY imagefiles/entrypoint.sh imagefiles/dockcross /dockcross/