Skip to content

Instantly share code, notes, and snippets.

@OtherDevOpsGene
Last active November 1, 2020 19:25
Show Gist options
  • Save OtherDevOpsGene/d538d63c095272dff2875aa535139081 to your computer and use it in GitHub Desktop.
Save OtherDevOpsGene/d538d63c095272dff2875aa535139081 to your computer and use it in GitHub Desktop.
Bigger Dockerfile for Docker Workshop
FROM ubuntu:latest
RUN apt-get update && apt-get install -y --no-install-recommends \
default-jdk-headless maven git \
&& rm -rf /var/lib/apt/lists/*
RUN git clone https://github.com/OtherDevOpsGene/helloworld.git
WORKDIR helloworld
RUN mvn clean package
CMD ["java", "-cp", "/helloworld/target/helloworld-1.1.jar", \
"com.coveros.demo.helloworld.HelloWorld"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment