diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index daf65c0..b302877 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -26,3 +26,9 @@ repos: language: docker_image entry: rhysd/actionlint:1.6.26 files: ^\.github/workflows/.*\.yml$ + + - id: hadolint + name: Lint Dockerfiles + language: docker_image + entry: hadolint/hadolint hadolint + files: Dockerfile diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index cebcc49..3a74b29 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -10,3 +10,9 @@ language: docker_image entry: rhysd/actionlint:1.6.26 files: ^\.github/workflows/.*\.yml$ + +- id: hadolint + name: Lint Dockerfiles + language: docker_image + entry: hadolint/hadolint hadolint + files: Dockerfile diff --git a/ltex/Dockerfile b/ltex/Dockerfile index 2414166..e89b2b8 100644 --- a/ltex/Dockerfile +++ b/ltex/Dockerfile @@ -1,9 +1,10 @@ FROM openjdk:11.0.16-jre ARG LTEX_VERSION=16.0.0 +SHELL ["/bin/bash", "-o", "pipefail", "-c"] RUN <