Skip to content

Commit 8343771

Browse files
authored
Merge pull request #159 from artkirienko/lint-dockerfile
Lint Dockerfile with hadolint 🐳
2 parents 0ec0b46 + 106bb29 commit 8343771

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/docker-image.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ on: [push]
55
jobs:
66

77
build:
8-
98
runs-on: ubuntu-latest
10-
119
steps:
1210
- uses: actions/checkout@v1
1311
- name: Build the Docker image
1412
run: docker build . --file Dockerfile --tag bakery:$(date +%s)
13+
- name: Hadolint Action
14+
uses: brpaz/hadolint-action@v1.2.1
15+
with:
16+
dockerfile: Dockerfile

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ COPY ./ /usr/src/app/
33
WORKDIR /usr/src/app
44

55
# Update bundler to the latest available version
6-
RUN gem install bundler
6+
RUN gem install bundler:2.0.2
77

88
RUN bundle
99
CMD ["ruby", "lib/bakery_runner.rb"]

0 commit comments

Comments
 (0)