Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
FROM ruby:3-alpine
FROM almalinux:8
LABEL "maintainer"="bpicode"

LABEL "com.github.actions.name"="github-action-fpm"
LABEL "com.github.actions.description"="Build packages for multiple platforms using github.com/jordansissel/fpm"
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"]
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

set -e

FPMOPTS="${INPUT_FPM_OPTS}" fpm $@
FPMOPTS="${INPUT_FPM_OPTS}" fpm "$@"