mirror of https://github.com/k3s-io/k3s
Use ubuntu-slim to reduce size of the iperf:e2e image
parent
025b017277
commit
fcea6e0e9e
|
@ -12,9 +12,10 @@
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
FROM fedora
|
FROM gcr.io/google_containers/ubuntu-slim:0.2
|
||||||
MAINTAINER jay@apache.org
|
MAINTAINER jay@apache.org
|
||||||
RUN dnf install -y git gcc gcc-c++ make
|
RUN apt-get update && apt-get install -y --no-install-recommends iperf bash \
|
||||||
RUN git clone https://github.com/esnet/iperf.git
|
&& apt-get clean -y \
|
||||||
RUN cd iperf && git checkout 2.0.4-RELEASE && ./configure && make && make install && rm -rf iperf
|
&& rm -rf /var/lib/apt/lists/* \
|
||||||
|
&& ln -s /usr/bin/iperf /usr/local/bin/iperf
|
||||||
RUN ls -altrh /usr/local/bin/iperf
|
RUN ls -altrh /usr/local/bin/iperf
|
||||||
|
|
Loading…
Reference in New Issue