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
| # This dockerfile uses the ubuntu image # VERSION 2 - EDITION 1 # Author: docker_user # Command format: Instruction [arguments / command] ..
# Base image to use, this must be set as the first line FROM ubuntu
# Maintainer: docker_user <docker_user at email.com> (@docker_user) MAINTAINER docker_user docker_user@email.com
# Commands to update the image #RUN echo "deb http://archive.ubuntu.com/ubuntu/ raring main universe" >> /etc/apt/sources.list #RUN apt-get update && apt-get install -y nginx #RUN echo "\ndaemon off;" >> /etc/nginx/nginx.conf
# Commands when creating a new container #CMD /usr/sbin/nginx
ENV JAVA_HOME=/opt/tools/jdk1.8.0_131 ENV PATH=$JAVA_HOME/bin:$PATH ENV CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
# docker build -t nova/jdk . # docker run -it --name my-java -d java
|