minor improvements in Dockerfile

This commit is contained in:
Sergey Dudoladov 2019-05-14 13:20:17 +02:00
parent c7106dcc32
commit c3f5200d4b
1 changed files with 4 additions and 2 deletions

View File

@ -7,10 +7,12 @@ COPY manifests ./manifests
COPY e2e/requirements.txt e2e/tests ./
RUN apt-get update \
&& apt-get install -y python3 python3-pip curl \
&& apt-get install --no-install-recommends -y python3 python3-setuptools python3-pip curl \
&& pip3 install --no-cache-dir -r requirements.txt \
&& curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.14.0/bin/linux/amd64/kubectl \
&& chmod +x ./kubectl \
&& mv ./kubectl /usr/local/bin/kubectl
&& mv ./kubectl /usr/local/bin/kubectl \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
CMD ["python3", "-m", "unittest", "discover", "--start-directory", ".", "-v"]