Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
DockerHelper
/
ant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Registry
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 0bcc1d88
authored
Jun 04, 2017
by
Jessica Hawkwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding Dockerfile
0 parents
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
Dockerfile
Dockerfile
0 → 100644
View file @
0bcc1d8
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"]
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment