28 lines
831 B
Docker
28 lines
831 B
Docker
|
FROM python:3.7-alpine
|
||
|
|
||
|
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"
|
||
|
|
||
|
ENV PY_COLORS=1
|
||
|
|
||
|
COPY overlay/ /
|
||
|
|
||
|
RUN \
|
||
|
apk add --update --no-cache --virtual .build-deps gcc make libffi-dev musl-dev \
|
||
|
openssl-dev python-dev && \
|
||
|
apk add --update --no-cache git openssh-client && \
|
||
|
pip install --upgrade --no-cache-dir pip setuptools && \
|
||
|
pip install --no-cache-dir ansible~=2.9.0 pycrypto boto boto3 botocore hcloud \
|
||
|
apache-libcloud molecule && \
|
||
|
apk del .build-deps && \
|
||
|
rm -rf /var/cache/apk/* && \
|
||
|
rm -rf /tmp/* && \
|
||
|
rm -rf /root/.cache/
|
||
|
|
||
|
USER root
|
||
|
CMD []
|
||
|
ENTRYPOINT ["/bin/molecule"]
|