forked from HewlettPackard/oneview-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
34 lines (25 loc) · 826 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# See README.md to see how to build and run this
FROM python:3.6-slim-buster
LABEL maintainer "Chebrolu Harika <[email protected]>"
WORKDIR /root
# Some optional but recommended packages
RUN DEBIAN_FRONTEND=noninteractive \
apt-get update -y \
&& apt-get install --no-install-recommends -y \
vim \
curl
# install dependencies to run examples
RUN python -m pip install --upgrade pip
RUN pip install hpeOneView
ADD . oneview/
WORKDIR /root/oneview
# packages to run tests
RUN cd /root/oneview/
RUN pip install -r test_requirements.txt
RUN pip install tox
# Clean and remove not required packages
RUN DEBIAN_FRONTEND=noninteractive \
apt-get autoremove -y && \
apt-get clean -y && \
rm -rf /var/cache/apt/archives/* /var/cache/apt/lists/* /tmp/* /root/cache/.
CMD ["/bin/bash"]