diff --git a/.github/workflows/dockerfile.yml b/.github/workflows/dockerfile.yml new file mode 100644 index 000000000..758cf6529 --- /dev/null +++ b/.github/workflows/dockerfile.yml @@ -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 diff --git a/.hadolint.yaml b/.hadolint.yaml new file mode 100644 index 000000000..7c9db0d5c --- /dev/null +++ b/.hadolint.yaml @@ -0,0 +1,3 @@ +ignored: + - DL3015 + - DL3008 diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..f77de3f13 --- /dev/null +++ b/Dockerfile @@ -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