-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathDockerfile
30 lines (23 loc) · 1.04 KB
/
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
FROM ubuntu:14.04
# Last build date - this can be updated whenever there are security updates so
# that everything is rebuilt
ENV security_updates_as_of 2015-08-10
# Install security updates and required packages
RUN apt-get -qy update && \
apt-get -qy upgrade && \
apt-get -qy install python-pip && \
apt-get -qy install python-dev && \
apt-get -qy install libyaml-dev && \
apt-get -qy install libffi-dev && \
apt-get -qy install libssl-dev && \
pip install --upgrade pip setuptools && \
# Pre-install some requirements to make the next step hopefully faster
pip install twisted==14.0.0 treq==0.2.1 service_identity pycrypto pyrsistent pyyaml==3.10
RUN pip install docker-py
ADD setup.py README.md /app/
ADD dvol_python/* /app/dvol_python/
WORKDIR /app
# Install requirements from the project's setup.py
RUN python setup.py install
CMD ["dvol-docker-plugin"]
VOLUME ["/var/lib/dvol"]