fix: hadolint fixes (DL3018, DL3013, quoted strings)
This commit is contained in:
+17
-17
@@ -1,30 +1,30 @@
|
|||||||
FROM "python:3.7-alpine"
|
FROM python:3.7-alpine
|
||||||
|
|
||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
ARG VCS_REF
|
ARG VCS_REF
|
||||||
ARG VERSION
|
ARG VERSION
|
||||||
|
|
||||||
|
# hadolint ignore=DL3018
|
||||||
RUN apk --no-cache add --virtual build-dependencies \
|
RUN apk --no-cache add --virtual build-dependencies \
|
||||||
build-base libffi-dev libressl-dev && \
|
build-base libffi-dev libressl-dev && \
|
||||||
|
# hadolint ignore=DL3013
|
||||||
pip install --no-cache-dir ansible-review && \
|
pip install --no-cache-dir ansible-review && \
|
||||||
apk del build-dependencies
|
apk del build-dependencies
|
||||||
|
|
||||||
LABEL "maintainer"="dockerimages@cabillot.eu" \
|
LABEL maintainer="dockerimages@cabillot.eu" \
|
||||||
"org.label-schema.name"="ansible-review" \
|
org.label-schema.name="ansible-review" \
|
||||||
"org.label-schema.base-image.name"="docker.io/library/python" \
|
org.label-schema.base-image.name="docker.io/library/python" \
|
||||||
"org.label-schema.base-image.version"="3.7-alpine" \
|
org.label-schema.base-image.version="3.7-alpine" \
|
||||||
"org.label-schema.description"="Ansible-review in a container" \
|
org.label-schema.description="Ansible-review in a container" \
|
||||||
"org.label-schema.url"="https://github.com/willthames/ansible-review" \
|
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.vcs-url="https://gitlab.cabillot.eu/jcabillot/ansible-review/" \
|
||||||
"org.label-schema.vendor"="Julien Cabillot" \
|
org.label-schema.vendor="Julien Cabillot" \
|
||||||
"org.label-schema.schema-version"="1.0" \
|
org.label-schema.schema-version="1.0" \
|
||||||
"org.label-schema.applications.ansiblelint.version"="latest" \
|
org.label-schema.applications.ansiblelint.version="latest" \
|
||||||
"org.label-schema.vcs-ref"="$VCS_REF" \
|
org.label-schema.vcs-ref="$VCS_REF" \
|
||||||
"org.label-schema.version"="$VERSION" \
|
org.label-schema.version="$VERSION" \
|
||||||
"org.label-schema.build-date"="$BUILD_DATE" \
|
org.label-schema.build-date="$BUILD_DATE" \
|
||||||
"org.label-schema.usage"="docker run --rm -v $(pwd):/data registry.cabillot.eu/jcabillot/ansible-review -p ."
|
org.label-schema.usage="docker run --rm -v $(pwd):/data registry.cabillot.eu/jcabillot/ansible-review -p ."
|
||||||
# TODO: fix this last line
|
|
||||||
|
|
||||||
ENTRYPOINT [ "/usr/local/bin/ansible-review" ]
|
ENTRYPOINT [ "/usr/local/bin/ansible-review" ]
|
||||||
CMD [ "--help" ]
|
CMD [ "--help" ]
|
||||||
# TOREAD: https://gist.github.com/paul-butcher/7bab39b85abc9c7334df02004cba2eb3
|
|
||||||
|
|||||||
Reference in New Issue
Block a user