You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by GitBox <gi...@apache.org> on 2022/01/24 03:08:30 UTC
[GitHub] [maven-mvnd] mailbyms commented on issue #587: will there be an official docker image on docker hub
mailbyms commented on issue #587:
URL: https://github.com/apache/maven-mvnd/issues/587#issuecomment-1019670488
> 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"]
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org