-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
61 lines (51 loc) · 1.15 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
FROM ubuntu:xenial
RUN \
# configure the "reactivity" user
groupadd reactivity && \
useradd reactivity -s /bin/bash -m -g reactivity -G sudo && \
echo 'reactivity:reactivity' |chpasswd && \
mkdir /home/reactivity/reactivity && \
# install open-jdk 8
apt-get update && \
apt-get install -y openjdk-8-jdk && \
# install utilities
apt-get install -y \
wget \
curl \
nano \
git \
zip \
bzip2 \
fontconfig \
python \
g++ \
ruby \
ruby-dev \
build-essential && \
# install travis
gem install travis && \
# cleanup
apt-get clean && \
rm -rf \
/var/lib/apt/lists/* \
/tmp/* \
/var/tmp/*
# Install CloudFoundry
ADD https://cli.run.pivotal.io/stable?release=linux64-binary&source=github /tmp/cf-cli.tgz
RUN \
# install CloudFoundry
tar xvf /tmp/cf-cli.tgz && \
mv /cf /usr/bin/cf
RUN \
# fix user permissions
chown -R reactivity:reactivity \
/home/reactivity && \
# cleanup
rm -rf \
/var/lib/apt/lists/* \
/tmp/* \
/var/tmp/*
# expose the working directory
USER reactivity
WORKDIR "/home/reactivity/reactivity"
VOLUME ["/home/reactivity/reactivity"]