-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile
23 lines (19 loc) · 867 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
FROM ubuntu:14.04
MAINTAINER [email protected]
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update
# Install dh-virtualenv
RUN apt-get install --no-install-recommends -y git-core devscripts equivs ca-certificates
RUN git clone https://github.com/spotify/dh-virtualenv.git
RUN cd dh-virtualenv && git checkout 0.6 && mk-build-deps -irt'apt-get --no-install-recommends -yq'
RUN cd dh-virtualenv && dpkg-buildpackage -uc -us
RUN dpkg -i dh-virtualenv_0.6_all.deb 2>/dev/null ; apt-get --no-install-recommends -y -f install
# Install build depends (add debian dir only for better caching)
ADD debian/control /tmp/control
RUN mk-build-deps -irt'apt-get --no-install-recommends -yq' /tmp/control
RUN apt-get install -y python-flake8
RUN apt-get install -y python-dev libldap2-dev libsasl2-dev
# Build
VOLUME ["/droplet"]
WORKDIR /droplet
ENTRYPOINT ["/usr/bin/make"]