Skip to content

Commit e031a18

Browse files
committed
chore: update Dockerfile and add Dockerfile linting
- Add `hadolint` action for Dockerfile linting - Add `.hadolint.yaml` file for ignoring specific linting rules - Update Dockerfile to use latest versions of dependencies Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
1 parent 09a5329 commit e031a18

3 files changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/testing.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ jobs:
2828
with:
2929
version: latest
3030
args: --verbose
31+
- uses: hadolint/hadolint-action@v3.1.0
32+
name: hadolint for Dockerfile
33+
with:
34+
dockerfile: docker/Dockerfile
3135

3236
testing:
3337
runs-on: ubuntu-latest

.hadolint.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
ignored:
2+
- DL3018
3+
- DL3008

docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ LABEL org.opencontainers.image.source=https://github.com/appleboy/CodeGPT
1212
LABEL org.opencontainers.image.description="A CLI written in Go language that writes git commit messages or do a code review brief for you using ChatGPT AI."
1313
LABEL org.opencontainers.image.licenses=MIT
1414

15-
RUN apk add --no-cache ca-certificates=20230506-r0 git=2.38.5-r0 && \
15+
RUN apk add --no-cache ca-certificates git && \
1616
rm -rf /var/cache/apk/*
1717

1818
COPY release/${TARGETOS}/${TARGETARCH}/codegpt /bin/

0 commit comments

Comments
 (0)