Last active
August 13, 2022 17:33
-
-
Save AllanCapistrano/0684b3bcbd85639b327ca3f4d3126cbb to your computer and use it in GitHub Desktop.
Dockerfile to Java + Ant projects
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
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