forked from anduintransaction/baseimage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
52 lines (40 loc) · 1.45 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
FROM ubuntu:14.10
MAINTAINER Binh Nguyen "[email protected]"
# avoid interactive dialoges from apt:
ENV DEBIAN_FRONTEND noninteractive
RUN sed 's/main$/main universe/' -i /etc/apt/sources.list
RUN apt-get update && apt-get install -yq \
build-essential \
make \
ca-certificates \
net-tools \
sudo \
wget \
vim \
strace \
lsof \
netcat \
software-properties-common \
python-software-properties \
python-pip \
curl \
supervisor \
--no-install-recommends
# add repos and update:
RUN add-apt-repository ppa:webupd8team/java; apt-get update;
# install java8:
RUN echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections; apt-get -y install oracle-java8-installer oracle-java8-set-default --no-install-recommends
# install confd
RUN wget --quiet -O /usr/local/bin/confd \
https://github.com/kelseyhightower/confd/releases/download/v0.6.3/confd-0.6.3-linux-amd64 &&\
chmod +x /usr/local/bin/confd
# set JAVA_HOME
ENV JAVA_HOME /usr/lib/jvm/java-8-oracle
# secured SecureRandom
RUN sed -e 's%^\(securerandom.source\)=.*%\1=file:/dev/./urandom%' \
-i $JAVA_HOME/jre/lib/security/java.security
EXPOSE 4001 7001
# Clean up APT when done.
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
ADD config/supervisord.conf /etc/supervisor/supervisord.conf
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf"]