blob: 487941914ea9feae26d31b00af3e4863e5516953 [file] [log] [blame]
Oleksii Zhurba4ccdbf22018-09-04 21:00:19 -05001FROM ubuntu:16.04
2
3USER root
4
5WORKDIR /var/lib/
6
Oleksii Zhurba3c08b132018-11-16 10:49:30 -06007RUN mkdir -p cvp-sanity/
Oleksii Zhurba4ccdbf22018-09-04 21:00:19 -05008
Oleksii Zhurba3c08b132018-11-16 10:49:30 -06009COPY . cvp-sanity/
Oleksii Zhurba4ccdbf22018-09-04 21:00:19 -050010
11RUN apt-get update && \
Oleksii Zhurbae21bbe12018-11-12 11:35:00 -060012 apt-get install -y python-pip git curl wget vim inetutils-ping libsasl2-dev python-dev libldap2-dev libssl-dev && \
Oleksii Zhurba4ccdbf22018-09-04 21:00:19 -050013 python -m pip install --upgrade pip && \
Oleksii Zhurba76a8c962018-11-18 21:51:29 -060014 pip install -r cvp-sanity/requirements.txt && \
Oleksii Zhurba4ccdbf22018-09-04 21:00:19 -050015 apt-get -y autoremove; apt-get -y clean
16
17RUN rm -rf /root/.cache && \
18 rm -rf /var/lib/apt/lists/* && \
19 rm -rf /tmp/* && \
20 rm -rf /var/tmp/*
21
22ENTRYPOINT ["/bin/bash"]