Note: There is no official Docker image for FPM. You can build your own using the Dockerfile in the repository.
See Docker installation: Docker
The FPM repository includes a Dockerfile:
# Clone the repository
git clone https://github.com/jordansissel/fpm.git
cd fpm
# Build the Docker image
docker build -t fpm:latest .
# Run FPM
docker run --rm -it fpm:latest --version
docker run --rm -it \
-v /path/to/source:/source \
-v /path/to/output:/output \
fpm:latest \
fpm -s dir -t deb -n mypackage -v 1.0.0 -C /source -p /output
You can install FPM in any Ruby-enabled image:
FROM ruby:3.2-slim
RUN apt-get update && apt-get install -y \
rpm \
&& rm -rf /var/lib/apt/lists/*
RUN gem install fpm
WORKDIR /workspace
Running containers in production? We help with:
Need help? office@linux-server-admin.com or Contact Us
References: