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>
diff --git a/extras/hs-test/docker/Dockerfile.curl b/extras/hs-test/docker/Dockerfile.curl
index cbb0bbe..0722068 100644
--- a/extras/hs-test/docker/Dockerfile.curl
+++ b/extras/hs-test/docker/Dockerfile.curl
@@ -3,13 +3,12 @@
FROM ubuntu:${UBUNTU_VERSION}
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/*
COPY script/build_curl.sh /build_curl.sh
COPY resources/curl/* /tmp/
RUN fallocate -l 10MB /tmp/testFile
-RUN apt-get update && apt-get install wget
RUN /build_curl.sh
CMD ["/bin/sh"]