META-INF.jreleaser.templates.native-image.docker.Dockerfile-remote.tpl Maven / Gradle / Ivy
# {{jreleaserCreationStamp}}
FROM {{dockerBaseImage}}
{{#dockerLabels}}
LABEL {{.}}
{{/dockerLabels}}
{{#dockerPreCommands}}
{{.}}
{{/dockerPreCommands}}
RUN curl -Ls "{{distributionUrl}}" --output {{distributionArtifactFile}} && \
unzip {{distributionArtifactFile}} && \
rm {{distributionArtifactFile}} && \
chmod +x {{distributionArtifactRootEntryName}}/bin/{{distributionExecutableUnix}}
{{#dockerPostCommands}}
{{.}}
{{/dockerPostCommands}}
ENV PATH="${PATH}:/{{distributionArtifactRootEntryName}}/bin"
ENTRYPOINT ["/{{distributionArtifactRootEntryName}}/bin/{{distributionExecutableUnix}}"]