Skip to content

Commit

Permalink
Add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
wkozyra95 committed Aug 2, 2023
1 parent 8608847 commit 3d0431e
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/dockerfile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: lint-dockerfiles
on:
push:
branches: [master]
paths:
- 'Dockerfile'
- .github/workflows/dockerfile.yml
pull_request:
types: [opened, synchronize]
paths:
- 'Dockerfile'
- .github/workflows/dockerfile.yml

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}

jobs:
dockerfile:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install Hadolint
run: |
curl -sSL -o hadolint "https://github.com/hadolint/hadolint/releases/download/2.12.0/hadolint-Linux-x86_64"
chmod +x hadolint
- name: Lint Dockerfiles
run: ./hadolint Dockerfile
3 changes: 3 additions & 0 deletions .hadolint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ignored:
- DL3015
- DL3008
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM ubuntu:jammy-20230624

RUN apt-get update -y -qq && \
apt-get install -y libegl1-mesa libgl1-mesa-dri libxcb-xfixes0-dev ffmpeg libavcodec-dev libavformat-dev libavfilter-dev libavdevice-dev

0 comments on commit 3d0431e

Please sign in to comment.