Skip to content

Commit 106bb29

Browse files
committed
Lint Dockerfile. Closes #158 🐳
Lint Dockerfile with hadolint https://github.com/hadolint/hadolint
1 parent 0ec0b46 commit 106bb29

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)