HUB
Sign inSign up

nas2docker/ubuntu1604_jdk8_nginx_openssh

By nas2docker

•Updated over 9 years ago

Image is combination of | FROM ubuntu 16.04 + openjdk8 + supervisord + nginx + openssh-server

Image
0

203

nas2docker/ubuntu1604_jdk8_nginx_openssh repository overview

FROM ubuntu:16.04

RUN apt-get update && apt-get install -y openssh-server apache2 build-essential supervisor

ENV NGINX_VERSION nginx-1.11.3

RUN mkdir -p /var/lock/apache2 /var/run/apache2 /var/run/sshd /var/log/supervisor

#Install dependencies RUN apt-get update &&
apt-get install -y ca-certificates openssl libssl-dev &&
rm -rf /var/lib/apt/lists/*

#Download and decompress Nginx RUN mkdir -p /tmp/build/nginx &&
cd /tmp/build/nginx &&
wget -O ${NGINX_VERSION}.tar.gz https://nginx.org/download/${NGINX_VERSION}.tar.gz⁠ &&
tar -zxf ${NGINX_VERSION}.tar.gz

#Build and install Nginx #The default puts everything under /usr/local/nginx, so it's needed to change #it explicitly. Not just for order but to have it in the PATH RUN cd /tmp/build/nginx/${NGINX_VERSION} &&
./configure
--sbin-path=/usr/local/sbin/nginx
--conf-path=/etc/nginx/nginx.conf
--error-log-path=/var/log/nginx_error.log
--pid-path=/var/run/nginx/nginx.pid
--lock-path=/var/lock/nginx/nginx.lock
--http-log-path=/var/log/nginx_access.log
--http-client-body-temp-path=/tmp/nginx-client-body
--with-http_ssl_module
--with-threads
--without-http_rewrite_module
--with-ipv6 &&
make -j $(getconf _NPROCESSORS_ONLN) &&
make install &&
mkdir /var/lock/nginx &&
rm -rf /tmp/build

#Install openjdk-8 RUN apt-get update &&
apt-get install -y openjdk-8-jdk &&
apt-get install -y ant &&
apt-get clean;

#Fix certificate issues, found as of #https://bugs.launchpad.net/ubuntu/+source/ca-certificates-java/+bug/983302⁠ RUN apt-get update &&
apt-get install ca-certificates-java &&
apt-get clean &&
update-ca-certificates -f;

#Setup JAVA_HOME, this is useful for docker commandline ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64/ RUN export JAVA_HOME

Tag summary

Content type

Image

Digest

Size

315.4 MB

Last updated

over 9 years ago

docker pull nas2docker/ubuntu1604_jdk8_nginx_openssh