Last active
August 29, 2015 14:17
-
-
Save venj/5894a54b6ab73168bce8 to your computer and use it in GitHub Desktop.
Dockerfile to make server image. Build: # docker build -t tomcat_server .
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#JAVA_SERVER | |
#VERSION 1.0 | |
FROM ubuntu:latest | |
MAINTAINER venj | |
#Update Ubuntu | |
RUN apt-get update | |
#Add oracle java 7 repository | |
RUN apt-get -y install software-properties-common | |
RUN add-apt-repository ppa:webupd8team/java | |
RUN apt-get -y update | |
#Accept the Oracle Java license | |
RUN echo "oracle-java8-installer shared/accepted-oracle-license-v1-1 boolean true" | debconf-set-selections | |
#Install Oracle Java, tomcat | |
RUN apt-get -y install oracle-java8-installer tomcat7 | |
RUN echo "JAVA_HOME=/usr/lib/jvm/java-8-oracle" >> /etc/default/tomcat7 | |
EXPOSE 8080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment