mirror of
https://github.com/bensuperpc/dockcross.git
synced 2025-02-02 07:46:37 +01:00
common.debian: Optimize image size combining RUN instructions
This commit is contained in:
parent
2b93dd5412
commit
47d2738159
@ -1,12 +1,13 @@
|
|||||||
RUN REPO=http://cdn-fastly.deb.debian.org && \
|
|
||||||
echo "deb $REPO/debian jessie main\ndeb $REPO/debian jessie-updates main\ndeb $REPO/debian-security jessie/updates main" > /etc/apt/sources.list
|
|
||||||
|
|
||||||
# Image build scripts
|
# Image build scripts
|
||||||
COPY imagefiles/install-gosu-binary.sh /buildscripts/
|
COPY imagefiles/install-gosu-binary.sh /buildscripts/
|
||||||
|
|
||||||
ARG DEBIAN_FRONTEND=noninteractive
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
ARG REPO=http://cdn-fastly.deb.debian.org
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
|
bash -c "echo \"deb $REPO/debian jessie main\" > /etc/apt/sources.list" && \
|
||||||
|
bash -c "echo \"deb $REPO/debian jessie-updates main\" >> /etc/apt/sources.list" && \
|
||||||
|
bash -c "echo \"deb $REPO/debian-security jessie/updates main\" >> /etc/apt/sources.list" && \
|
||||||
apt-get update --yes && \
|
apt-get update --yes && \
|
||||||
apt-get install --no-install-recommends --yes \
|
apt-get install --no-install-recommends --yes \
|
||||||
automake \
|
automake \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user