Created
July 6, 2018 22:46
-
-
Save vamega/2927e1811aa0d0ad47364fc87d6d62e6 to your computer and use it in GitHub Desktop.
Docker file for packaging things with fpm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian:stretch-slim | |
MAINTAINER Varun Madiath <vamega@gmail.com> | |
RUN apt-get update && \ | |
apt-get -y install \ | |
apt-transport-https \ | |
curl \ | |
gnupg2 \ | |
rubygems-integration \ | |
ruby-dev \ | |
ruby \ | |
build-essential \ | |
rsync && \ | |
apt-get -y dist-upgrade && \ | |
apt-get clean && \ | |
rm -f /var/lib/apt/lists/* ; \ | |
rm -f /var/lib/apt/lists/partial/* | |
RUN gem install fpm | |
RUN apt-get update && \ | |
apt-get -y install \ | |
python \ | |
python-setuptools \ | |
python-pip \ | |
&& \ | |
apt-get -y dist-upgrade && \ | |
apt-get clean && \ | |
rm -f /var/lib/apt/lists/* ; \ | |
rm -f /var/lib/apt/lists/partial/* | |
fpm -s python \ | |
-t deb \ | |
--python-pip /usr/bin/pip \ | |
--python-disable-dependency six \ | |
-d python-yaml \ | |
-v 1.21.1 \ | |
d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment