mirror of
https://github.com/jordansissel/fpm
synced 2025-08-26 03:34:35 +02:00
In order to follow best practice for Dockerfiles, this commit: * Removes leading and trailing blank lines. * Pins the base image to a specific version of Alpine; the latest, 3.7, is used. * Tells `apk` to not cache any package lists. * Puts each dependency on its own line. * Does some minor reformatting for readability.
17 lines
323 B
Docker
17 lines
323 B
Docker
#
|
|
# To build this Docker image: docker build -t fpm .
|
|
#
|
|
# To run this Docker container interactively: docker run -it fpm
|
|
#
|
|
FROM alpine:3.7
|
|
|
|
RUN apk add --no-cache \
|
|
ruby \
|
|
ruby-dev \
|
|
gcc \
|
|
libffi-dev \
|
|
make \
|
|
libc-dev \
|
|
rpm \
|
|
&& gem install --no-ri --no-rdoc fpm
|