Commit 0bcc1d88 by Jessica Hawkwell

Adding Dockerfile

0 parents
Showing with 21 additions and 0 deletions
FROM openjdk:8-alpine
ARG ANT_VERSION=1.10.1
ARG USER_HOME_DIR="/root"
ARG SHA=0acf6f46a71985912f9c2c768795b97e5c26bc9a7a0b61d27af8287f8b96cd8e
ARG BASE_URL=http://www-us.apache.org/dist//ant/binaries
RUN mkdir -p /usr/share/ant /usr/share/ant/ref \
&& apk update && apk add curl && apk add git && apk add bash \
&& curl -fsSl -o /tmp/apache-ant.tar.gz ${BASE_URL}/apache-ant-$ANT_VERSION-bin.tar.gz \
&& echo "${SHA} /tmp/apache-ant.tar.gz" | sha256sum -c - \
&& tar -xzf /tmp/apache-ant.tar.gz -C /usr/share/ant --strip-components=1 \
&& rm -f /tmp/apache-ant.tar.gz \
&& ln -s /usr/share/ant/bin/ant /usr/bin/ant
ENV ANT_HOME /usr/share/ant
COPY ant-entrypoint.sh /usr/local/bin/ant-entrypoint.sh
ENTRYPOINT ["/usr/local/bin/ant-entrypoint.sh"]
CMD ["ant"]
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!