Skip to content

Commit

Permalink
Enable the pre-commit hook to check Dockerfile (#106)
Browse files Browse the repository at this point in the history
* Enable the pre-commit hook of hadolint to check Dockerfile

Signed-off-by: Yu Ishikawa <[email protected]>

* Resolve the warning violation of hadolint

Signed-off-by: Yu Ishikawa <[email protected]>

---------

Signed-off-by: Yu Ishikawa <[email protected]>
  • Loading branch information
yu-iskw authored Sep 22, 2023
1 parent fca3033 commit 70d3a08
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ repos:
# rev: 4.0.1
# hooks:
# - id: flake8
# TODO refactor the files in the 'docker' directory later.
# - repo: https://github.com/hadolint/hadolint
# rev: v2.12.0
# hooks:
# - id: hadolint-docker
- repo: https://github.com/hadolint/hadolint
rev: v2.12.0
hooks:
- id: hadolint-docker
2 changes: 1 addition & 1 deletion docker/Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM python:3.10-slim-bullseye
# Set separate working directory for easier debugging.
WORKDIR /app

RUN pip install 'poetry==1.2.1'
RUN pip install --no-cache-dir 'poetry==1.2.1'
COPY pyproject.toml poetry.lock ./
# Install the dependencies first, so that we can cache them.
RUN poetry install --with test --extras postgres
Expand Down

0 comments on commit 70d3a08

Please sign in to comment.