hs-test: reduce curl image size
before: REPOSITORY TAG IMAGE ID CREATED SIZE hs-test/curl latest 4eededa5f68a 27 minutes ago 973MB now: REPOSITORY TAG IMAGE ID CREATED SIZE hs-test/curl latest 1a8faf0cbf8b About a minute ago 110MB Type: improvement Change-Id: I7da5f5f26c3738e022225b1bb66d75f748074496 Signed-off-by: Matus Fabian <matfabia@cisco.com>
This commit is contained in:

committed by
Florin Coras

parent
0443b9264f
commit
80ae7e5307
@ -3,13 +3,12 @@ ARG UBUNTU_VERSION
|
|||||||
FROM ubuntu:${UBUNTU_VERSION}
|
FROM ubuntu:${UBUNTU_VERSION}
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y gcc git make autoconf libtool pkg-config cmake ninja-build golang \
|
&& apt-get install -y xz-utils wget \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
COPY script/build_curl.sh /build_curl.sh
|
COPY script/build_curl.sh /build_curl.sh
|
||||||
COPY resources/curl/* /tmp/
|
COPY resources/curl/* /tmp/
|
||||||
RUN fallocate -l 10MB /tmp/testFile
|
RUN fallocate -l 10MB /tmp/testFile
|
||||||
RUN apt-get update && apt-get install wget
|
|
||||||
RUN /build_curl.sh
|
RUN /build_curl.sh
|
||||||
|
|
||||||
CMD ["/bin/sh"]
|
CMD ["/bin/sh"]
|
||||||
|
Reference in New Issue
Block a user