Skip to content

Instantly share code, notes, and snippets.

@vamega
Created July 6, 2018 22:46
Show Gist options
  • Save vamega/2927e1811aa0d0ad47364fc87d6d62e6 to your computer and use it in GitHub Desktop.
Save vamega/2927e1811aa0d0ad47364fc87d6d62e6 to your computer and use it in GitHub Desktop.
Docker file for packaging things with fpm
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