Skip to content

Commit

Permalink
Add hadolint check
Browse files Browse the repository at this point in the history
  • Loading branch information
tdeo committed Apr 8, 2024
1 parent 42f2a0a commit 09c5370
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 6 additions & 0 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion ltex/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
FROM openjdk:11.0.16-jre

ARG LTEX_VERSION=16.0.0
SHELL ["/bin/bash", "-o", "pipefail", "-c"]

RUN <<EOF
wget https://github.com/valentjn/ltex-ls/releases/download/${LTEX_VERSION}/ltex-ls-${LTEX_VERSION}.tar.gz -O - | tar -xz
wget --quiet https://github.com/valentjn/ltex-ls/releases/download/${LTEX_VERSION}/ltex-ls-${LTEX_VERSION}.tar.gz -O - | tar -xz
mv /ltex-ls-${LTEX_VERSION} /ltex-ls
EOF

Expand Down

0 comments on commit 09c5370

Please sign in to comment.