molecule/docker/Dockerfile.gce.linux.amd64

42 lines
891 B
Docker
Raw Normal View History

2019-02-28 10:34:14 +01:00
FROM python:3.7-alpine
2019-03-18 14:45:18 +01:00
LABEL maintainer="Robert Kaussow <mail@geeklabor.de>" \
org.label-schema.name="molecule" \
org.label-schema.vcs-url="https://gitea.rknet.org/docker/molecule" \
org.label-schema.vendor="Robert Kaussow" \
org.label-schema.schema-version="1.0"
2019-02-28 10:34:14 +01:00
ENV PACKAGES="\
gcc \
make \
bash \
libffi-dev \
musl-dev \
openssl-dev \
python-dev \
git \
openssh-client \
"
ENV PIP_PACKAGES="\
2019-02-28 10:51:09 +01:00
molecule[gce] \
2019-02-28 10:34:14 +01:00
virtualenv \
apache-libcloud \
2019-02-28 10:51:09 +01:00
pycrypto \
2019-02-28 10:34:14 +01:00
"
2019-05-11 23:50:00 +02:00
COPY ./gce-entrypoint.sh /docker-entrypoint.sh
2019-03-12 11:18:14 +01:00
2019-02-28 10:34:14 +01:00
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 \
2019-02-28 11:12:00 +01:00
&& chmod 700 /root/.ssh
2019-02-28 10:34:14 +01:00
USER root
2019-03-12 11:18:14 +01:00
ENTRYPOINT ["/docker-entrypoint.sh"]