-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
37 lines (29 loc) · 996 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
FROM ubuntu:14.04
# Install.
RUN \
sed -i 's/# \(.*multiverse$\)/\1/g' /etc/apt/sources.list && \
apt-get update -y && \
apt-get upgrade -y && \
apt-get install -y build-essential && \
apt-get install -y software-properties-common && \
apt-get install -y byobu curl git htop man unzip vim wget maven && \
apt-get install -y net-tools iputils-ping && \
rm -rf /var/lib/apt/lists/*
# Install Java.
RUN \
apt-get update -y && \
apt-get install -y openjdk-7-jdk && \
rm -rf /var/lib/apt/lists/*
# Define commonly used JAVA_HOME variable
ENV JAVA_HOME /usr/lib/jvm/java-7-openjdk-amd64
# Set environment variables.
ENV HOME /root
# Define working directory.
WORKDIR /root
# Installing Reverse Tunnel
RUN \
git clone https://github.com/fogbow/fogbow-reverse-tunnel.git && \
(cd fogbow-reverse-tunnel && git checkout master && mvn install)
# Define working directory.
WORKDIR /root/fogbow-reverse-tunnel
CMD /bin/bash start-tunnel-server > log.out && tail -f /dev/null