Skip to content
Failed to load latest commit information.
Dockerfile Switch to official Java image Apr 13, 2015 Switch to official Java image Apr 13, 2015


Dockerfile for setting up Docker container with Jetty and Cargo installed.


  • Java 7
  • Jetty 9.0.7
  • Cargo 1.4.4


# docker pull mthenw/jetty-cargo


# docker run -d -p 8080 mthenw/jetty-cargo
# docker ps
CONTAINER ID   IMAGE                      COMMAND                CREATED              STATUS              PORTS                    NAMES
2bf1f924f2b4   mthenw/jetty-cargo:latest  java -Djetty.home=/o   About a minute ago   Up About a minute>8080/tcp  lonely_tesla6

Deploy Java application

While container is running Java application can be deployed using Cargo plugin for Maven or Gradle. Port on which docker exposes Jetty is on docker ps output.


From sources:

# docker build
Something went wrong with that request. Please try again.