Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
DockerHelper
/
maven
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 501c5b2b
authored
Jun 03, 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
26 additions
and
0 deletions
Dockerfile
Dockerfile
0 → 100644
View file @
501c5b2
# This file is a template, and might need editing before it works on your project.
FROM
openjdk:8-alpine
ARG MAVEN_VERSION=3.5.0
ARG USER_HOME_DIR="/root"
ARG SHA=beb91419245395bd69a4a6edad5ca3ec1a8b64e41457672dc687c173a495f034
ARG BASE_URL=https://apache.osuosl.org/maven/maven-3/${MAVEN_VERSION}/binaries
RUN
mkdir -p /usr/share/maven /usr/share/maven/ref
\
&&
curl -fsSL -o /tmp/apache-maven.tar.gz
${
BASE_URL
}
/apache-maven-
$MAVEN_VERSION
-bin.tar.gz
\
&&
echo
"
${
SHA
}
/tmp/apache-maven.tar.gz"
| sha256sum -c -
\
&&
tar -xzf /tmp/apache-maven.tar.gz -C /usr/share/maven --strip-components
=
1
\
&&
rm -f /tmp/apache-maven.tar.gz
\
&&
ln -s /usr/share/maven/bin/mvn /usr/bin/mvn
&& apk update && apk add git
ENV
MAVEN_HOME /usr/share/maven
ENV
MAVEN_CONFIG "$USER_HOME_DIR/.m2"
COPY mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh
COPY settings-docker.xml /usr/share/maven/ref/
VOLUME
"$USER_HOME_DIR/.m2"
ENTRYPOINT
["/usr/local/bin/mvn-entrypoint.sh"]
CMD
["mvn"]
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