Skip to content

Instantly share code, notes, and snippets.

@iambsp
Forked from lobster1234/Dockerfile
Created October 28, 2020 19:17
Show Gist options
  • Save iambsp/c8c3f1bf713f360c2696d1f659c4aaca to your computer and use it in GitHub Desktop.
Save iambsp/c8c3f1bf713f360c2696d1f659c4aaca to your computer and use it in GitHub Desktop.
Dockerfile to run tomcat in an ubuntu container
FROM ubuntu:latest
RUN apt-get -y update && apt-get -y upgrade
RUN apt-get -y install openjdk-8-jdk wget
RUN mkdir /usr/local/tomcat
RUN wget http://www-us.apache.org/dist/tomcat/tomcat-8/v8.5.16/bin/apache-tomcat-8.5.16.tar.gz -O /tmp/tomcat.tar.gz
RUN cd /tmp && tar xvfz tomcat.tar.gz
RUN cp -Rv /tmp/apache-tomcat-8.5.16/* /usr/local/tomcat/
EXPOSE 8080
CMD /usr/local/tomcat/bin/catalina.sh run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment