Files
gh-action-readme/Dockerfile
Ismo Vuorinen 5d671a9dc0 fix(ci): update security workflow to match goreleaser paths (#134)
* fix(ci): update security workflow to match goreleaser paths

* chore(ci): use GOOS and GOARCH in security.yml
2026-01-02 03:30:50 +02:00

34 lines
1.3 KiB
Docker

# Dockerfile for gh-action-readme
FROM scratch
# Multi-platform build support
# See: https://goreleaser.com/customization/dockers_v2/
# GoReleaser organizes binaries in platform subdirectories (linux/amd64/, linux/arm64/)
# TARGETPLATFORM arg resolves to the correct platform directory
ARG TARGETPLATFORM
# Copy the binary from the build context (platform-specific)
COPY $TARGETPLATFORM/gh-action-readme /usr/local/bin/gh-action-readme
# Copy templates and schemas
COPY templates /usr/local/share/gh-action-readme/templates
COPY schemas /usr/local/share/gh-action-readme/schemas
# Set environment variables for template paths
ENV GH_ACTION_README_TEMPLATE_PATH=/usr/local/share/gh-action-readme/templates
ENV GH_ACTION_README_SCHEMA_PATH=/usr/local/share/gh-action-readme/schemas
# Set the binary as entrypoint
ENTRYPOINT ["/usr/local/bin/gh-action-readme"]
# Default command
CMD ["--help"]
# Labels for metadata
LABEL org.opencontainers.image.title="gh-action-readme"
LABEL org.opencontainers.image.description="Auto-generate beautiful README and HTML documentation for GitHub Actions"
LABEL org.opencontainers.image.url="https://github.com/ivuorinen/gh-action-readme"
LABEL org.opencontainers.image.source="https://github.com/ivuorinen/gh-action-readme"
LABEL org.opencontainers.image.vendor="ivuorinen"
LABEL org.opencontainers.image.licenses="MIT"