META-INF.jreleaser.templates.binary.docker.Dockerfile-remote.tpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jreleaser-templates Show documentation
Show all versions of jreleaser-templates Show documentation
JReleaser packager templates
The newest version!
# {{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}}"]