Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

will there be an official docker image on docker hub #587

Closed
mailbyms opened this issue Jan 20, 2022 · 2 comments
Closed

will there be an official docker image on docker hub #587

mailbyms opened this issue Jan 20, 2022 · 2 comments

Comments

@mailbyms
Copy link

will there be an official docker image on docker hub?

@gnodet
Copy link
Contributor

gnodet commented Jan 21, 2022

Maybe in the future, though this is not not a short term goal at this point. We do welcome contributions though.

@gnodet gnodet closed this as completed Jan 21, 2022
@mailbyms
Copy link
Author

Maybe in the future, though this is not not a short term goal at this point. We do welcome contributions though.

Thanks for the reply.

I write a simple Dockerfile, someone might need it.

### phase 1
FROM openjdk:8-jdk

ARG MVND_VERSION=0.7.1
ARG DOWNLOAD_URL=https://github.com/apache/maven-mvnd/releases/download/${MVND_VERSION}/mvnd-${MVND_VERSION}-linux-amd64.zip

RUN mkdir -p /tmp/mvnd \
  && curl -fsSL -o mvnd.zip ${DOWNLOAD_URL} \
  && unzip  mvnd.zip -d /tmp/mvnd

### phase 2
FROM openjdk:8-jdk
COPY --from=0  /tmp/mvnd /usr/local/

ENV MVND_VERSION=0.7.1
ENV MVND_HOME=/usr/local/mvnd-${MVND_VERSION}-linux-amd64
ENV PATH=.:$MVND_HOME/bin:$PATH

CMD ["mvnd"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants