diff --git a/Dockerfile b/Dockerfile index ba1a0fd..4a66668 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM ruby:3-alpine +FROM almalinux:8 LABEL "maintainer"="bpicode" LABEL "com.github.actions.name"="github-action-fpm" @@ -6,12 +6,10 @@ LABEL "com.github.actions.description"="Build packages for multiple platforms us LABEL "com.github.actions.icon"="package" LABEL "com.github.actions.color"="green" -RUN apk --no-cache add build-base -RUN apk --no-cache add rpm -RUN apk --no-cache add tar -RUN apk --no-cache add zip -RUN gem install --no-document fpm -v 1.15.1 +RUN dnf -y module enable ruby:3.1 \ + && dnf -y install ruby ruby-devel gcc make redhat-rpm-config \ + && gem install --no-document fpm \ + && dnf clean all COPY entrypoint.sh /entrypoint.sh - ENTRYPOINT ["/entrypoint.sh"] diff --git a/entrypoint.sh b/entrypoint.sh index be7eebd..3e255b1 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -2,4 +2,4 @@ set -e -FPMOPTS="${INPUT_FPM_OPTS}" fpm $@ +FPMOPTS="${INPUT_FPM_OPTS}" fpm "$@"