Files
ansible-review/Dockerfile
T

32 lines
1.3 KiB
Docker
Raw Normal View History

FROM python:3.7-alpine
2019-02-25 11:43:40 -05:00
ARG BUILD_DATE
ARG VCS_REF
ARG VERSION
ARG ANSIBLE_REVIEW_VERSION=0.13.9
2019-02-25 11:43:40 -05:00
# hadolint ignore=DL3018
2019-02-25 11:43:40 -05:00
RUN apk --no-cache add --virtual build-dependencies \
build-base libffi-dev libressl-dev
# hadolint ignore=DL3013
RUN pip install --no-cache-dir ansible-review==${ANSIBLE_REVIEW_VERSION} && \
2019-02-25 11:43:40 -05:00
apk del build-dependencies
LABEL maintainer="dockerimages@cabillot.eu" \
org.label-schema.name="ansible-review" \
org.label-schema.base-image.name="docker.io/library/python" \
org.label-schema.base-image.version="3.7-alpine" \
org.label-schema.description="Ansible-review in a container" \
org.label-schema.url="https://github.com/willthames/ansible-review" \
org.label-schema.vcs-url="https://gitlab.cabillot.eu/jcabillot/ansible-review/" \
org.label-schema.vendor="Julien Cabillot" \
org.label-schema.schema-version="1.0" \
org.label-schema.applications.ansiblelint.version="latest" \
org.label-schema.vcs-ref="$VCS_REF" \
org.label-schema.version="$VERSION" \
org.label-schema.build-date="$BUILD_DATE" \
org.label-schema.usage="docker run --rm -v $(pwd):/data registry.cabillot.eu/jcabillot/ansible-review -p ."
2019-02-25 19:07:40 +00:00
2019-02-26 09:48:20 -05:00
ENTRYPOINT [ "/usr/local/bin/ansible-review" ]
CMD [ "--help" ]