52 lines
919 B
Docker
52 lines
919 B
Docker
FROM python:3.7-alpine
|
|
LABEL maintainer "Robert Kaussow <mail@geeklabor.de>"
|
|
|
|
ENV PACKAGES="\
|
|
gcc \
|
|
make \
|
|
bash \
|
|
shadow \
|
|
libffi-dev \
|
|
musl-dev \
|
|
openssl-dev \
|
|
py-pip \
|
|
python \
|
|
python-dev \
|
|
linux-headers \
|
|
sudo \
|
|
rsync \
|
|
curl \
|
|
ruby \
|
|
ruby-dev \
|
|
ruby-etc \
|
|
ruby-rdoc \
|
|
ruby-irb \
|
|
git \
|
|
openssh-client \
|
|
"
|
|
|
|
ENV PIP_PACKAGES="\
|
|
molecule[azure,docker,docs,ec2,gce,lxc,openstack,vagrant,windows] \
|
|
virtualenv \
|
|
apache-libcloud \
|
|
pycrypto
|
|
"
|
|
|
|
ENV GEM_PACKAGES="\
|
|
rubocop \
|
|
"
|
|
|
|
RUN \
|
|
apk update \
|
|
&& apk add --update --no-cache ${PACKAGES} \
|
|
&& rm -rf /var/cache/apk/* \
|
|
&& pip install --upgrade pip \
|
|
&& pip install --no-cache-dir ${PIP_PACKAGES} \
|
|
&& rm -rf /root/.cache \
|
|
&& mkdir /root/.ssh \
|
|
&& chmod 700 /root/.ssh \
|
|
&& gem install ${GEM_PACKAGES}
|
|
|
|
USER root
|
|
ENV SHELL /bin/bash
|