forked from yep/usergrid-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
38 lines (32 loc) · 1.21 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
#
# Oracle Java 8 Dockerfile for Usergrid
#
# https://github.com/yep/usergrid-java
#
# pull base image
FROM ubuntu:16.04
# don't ask the user when running apt-get install
ENV DEBIAN_FRONTEND noninteractive
# basic setup similar to docker's official ubuntu base image configuration
# see https://github.com/dockerfile/ubuntu
RUN \
sed -i 's/# \(.*multiverse$\)/\1/g' /etc/apt/sources.list && \
apt-get update && \
apt-get -y upgrade && \
apt-get install -y software-properties-common byobu curl git htop unzip vim wget tzdata && \
ln -fs /usr/share/zoneinfo/US/Pacific-New /etc/localtime && \
dpkg-reconfigure -f noninteractive tzdata && \
rm -rf /var/lib/apt/lists/*
# install oracle java
# based on docker's official oracle java 8 dockerfile from
# https://github.com/dockerfile/java/tree/master/oracle-java8
RUN \
echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && \
add-apt-repository -y ppa:webupd8team/java && \
apt-get update && \
apt-get install -y oracle-java8-installer && \
rm -rf /var/cache/oracle-jdk8-installer /var/lib/apt/lists/*
# commonly used JAVA_HOME variable
ENV JAVA_HOME /usr/lib/jvm/java-8-oracle
# default command
CMD ["bash"]