forked from tmobile/monarch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (34 loc) · 1001 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
35
36
37
38
39
FROM python:3
ADD https://github.com/cloudfoundry/bosh-cli/releases/download/v5.4.0/bosh-cli-5.4.0-linux-amd64 /usr/bin/bosh
ADD ["https://cli.run.pivotal.io/stable?release=debian64&source=github", "/tmp/cf-cli.deb"]
RUN dpkg -i /tmp/cf-cli.deb \
&& apt-get install -f \
&& rm /tmp/cf-cli.deb \
&& apt-get update && apt-get install -y \
git \
vim \
nano \
bash \
build-essential \
zlibc \
zlib1g-dev \
ruby \
ruby-dev \
openssl \
libxslt-dev \
libxml2-dev \
libssl-dev \
libreadline7 \
libreadline-dev \
libyaml-dev \
libsqlite3-dev \
sqlite3 \
&& rm -rf /var/lib/apt/lists/* \
&& chmod +x /usr/bin/bosh
COPY . /monarch
WORKDIR /monarch
RUN pip install --no-cache-dir -r requirements.txt \
&& python setup.py install \
&& rm -rf monarch.egg-info .eggs
VOLUME ["/monarch/config", "/monarch/tests/config"]
ENTRYPOINT ["bash"]