Skip to content
Snippets Groups Projects
Commit 821789e8 authored by Dmitriy Safronov's avatar Dmitriy Safronov
Browse files

update

parent 910fa749
No related branches found
No related tags found
No related merge requests found
Pipeline #14337 failed
# Created by .ignore support plugin (hsz.mobi) # Created by .ignore support plugin (hsz.mobi)
** **
!/Dockerfile !/Dockerfile
!/entrypoint.sh
...@@ -3,5 +3,4 @@ ...@@ -3,5 +3,4 @@
!/.gitlab-ci.yml !/.gitlab-ci.yml
!/.hadolint.yaml !/.hadolint.yaml
!/Dockerfile !/Dockerfile
!/entrypoint.sh
!/README.md !/README.md
...@@ -3,8 +3,6 @@ FROM $DOCKER_REGISTRY/tools/docker/hadolint:latest AS source ...@@ -3,8 +3,6 @@ FROM $DOCKER_REGISTRY/tools/docker/hadolint:latest AS source
FROM $DOCKER_REGISTRY/tools/docker/alpine:latest AS runtime FROM $DOCKER_REGISTRY/tools/docker/alpine:latest AS runtime
COPY --from=source /bin/hadolint /bin/ COPY --from=source /bin/hadolint /bin/
COPY entrypoint.sh /entrypoint.sh
RUN set -ex && \ RUN set -ex && \
chmod a+x /bin/hadolint && \ chmod a+x /bin/hadolint && \
chmod a+x /entrypoint.sh ENTRYPOINT [ "/bin/hadolint" ]
ENTRYPOINT [ "/entrypoint.sh" ]
#!/usr/bin/env sh
set -Eeu
if [ "$#" -eq 0 ]; then
hadolint --help
elif [ "$#" -ge 1 ] && [ "x$1" = "x--help" ]; then
shift 1
hadolint --help $@
else
hadolint $@
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment