META-INF.jreleaser.templates.binary.docker.Dockerfile.tpl Maven / Gradle / Ivy
# {{jreleaserCreationStamp}}
FROM {{dockerBaseImage}}
{{#dockerLabels}}
LABEL {{.}}
{{/dockerLabels}}
{{#dockerPreCommands}}
{{.}}
{{/dockerPreCommands}}
COPY assembly/ /
RUN chmod +x {{distributionArtifactRootEntryName}}/bin/{{distributionExecutableUnix}}
{{#dockerPostCommands}}
{{.}}
{{/dockerPostCommands}}
ENV PATH="${PATH}:/{{distributionArtifactRootEntryName}}/bin"
ENTRYPOINT ["/{{distributionArtifactRootEntryName}}/bin/{{distributionExecutableUnix}}"]