Skip to content

Instantly share code, notes, and snippets.

@AllanCapistrano
Last active August 13, 2022 17:33
Show Gist options
  • Save AllanCapistrano/0684b3bcbd85639b327ca3f4d3126cbb to your computer and use it in GitHub Desktop.
Save AllanCapistrano/0684b3bcbd85639b327ca3f4d3126cbb to your computer and use it in GitHub Desktop.
Dockerfile to Java + Ant projects
FROM alpine
# Change to root directory
WORKDIR /root
# Install OpenJDK8
RUN apk add openjdk8
# Install Apache Ant
RUN apk add apache-ant
# Add project folder and build file to container
ADD src /root/src
COPY build.xml /root
# Defining from which point the container will run
ENTRYPOINT ant
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment