Oleksii Zhurba | 4ccdbf2 | 2018-09-04 21:00:19 -0500 | [diff] [blame] | 1 | FROM ubuntu:16.04 |
| 2 | |
| 3 | USER root |
| 4 | |
| 5 | WORKDIR /var/lib/ |
| 6 | |
Oleksii Zhurba | 3c08b13 | 2018-11-16 10:49:30 -0600 | [diff] [blame] | 7 | RUN mkdir -p cvp-sanity/ |
Oleksii Zhurba | 4ccdbf2 | 2018-09-04 21:00:19 -0500 | [diff] [blame] | 8 | |
Oleksii Zhurba | 3c08b13 | 2018-11-16 10:49:30 -0600 | [diff] [blame] | 9 | COPY . cvp-sanity/ |
Oleksii Zhurba | 4ccdbf2 | 2018-09-04 21:00:19 -0500 | [diff] [blame] | 10 | |
| 11 | RUN apt-get update && \ |
Oleksii Zhurba | e21bbe1 | 2018-11-12 11:35:00 -0600 | [diff] [blame] | 12 | apt-get install -y python-pip git curl wget vim inetutils-ping libsasl2-dev python-dev libldap2-dev libssl-dev && \ |
Oleksii Zhurba | 4ccdbf2 | 2018-09-04 21:00:19 -0500 | [diff] [blame] | 13 | python -m pip install --upgrade pip && \ |
Oleksii Zhurba | 76a8c96 | 2018-11-18 21:51:29 -0600 | [diff] [blame] | 14 | pip install -r cvp-sanity/requirements.txt && \ |
Oleksii Zhurba | 4ccdbf2 | 2018-09-04 21:00:19 -0500 | [diff] [blame] | 15 | apt-get -y autoremove; apt-get -y clean |
| 16 | |
| 17 | RUN rm -rf /root/.cache && \ |
| 18 | rm -rf /var/lib/apt/lists/* && \ |
| 19 | rm -rf /tmp/* && \ |
| 20 | rm -rf /var/tmp/* |
| 21 | |
| 22 | ENTRYPOINT ["/bin/bash"] |