This repository has been archived on 2024-08-19. You can view files and clone it, but cannot push or open issues or pull requests.
molecule/docker/Dockerfile.gce
Robert Kaussow 8ef1761404
All checks were successful
continuous-integration/drone/push Build is passing
add simple entrypoint script
2019-03-12 11:18:14 +01:00

38 lines
698 B
Docker

FROM python:3.7-alpine
LABEL maintainer "Robert Kaussow <mail@geeklabor.de>"
ENV PACKAGES="\
gcc \
make \
bash \
libffi-dev \
musl-dev \
openssl-dev \
python-dev \
git \
openssh-client \
"
ENV PIP_PACKAGES="\
molecule[gce] \
virtualenv \
apache-libcloud \
pycrypto \
"
COPY ./docker-entrypoint.sh /
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
USER root
ENV SHELL /bin/bash
ENTRYPOINT ["/docker-entrypoint.sh"]