From c88c963e3b90280ddcf9336881bde250283b5163 Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Fri, 7 Oct 2022 18:16:33 -0400 Subject: [PATCH] fix dockerfile build Fixes #25 --- .github/workflows/ci-docker.yml | 2 +- Dockerfile | 14 ++++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci-docker.yml b/.github/workflows/ci-docker.yml index f4a5069..8669de6 100644 --- a/.github/workflows/ci-docker.yml +++ b/.github/workflows/ci-docker.yml @@ -45,7 +45,7 @@ jobs: - name: Lint Dockerfile uses: actions/checkout@v3 - - uses: hadolint/hadolint-action@v2.1.0 + - uses: hadolint/hadolint-action@v2.0.0 # 2.1.0 sometimes errors without any output with: dockerfile: ./Dockerfile diff --git a/Dockerfile b/Dockerfile index e464b30..3ca971b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,12 +15,14 @@ WORKDIR /build/ # copy repo COPY . . -RUN python # update pip \ - -m pip --no-python-version-warning --disable-pip-version-check install --upgrade pip==20.3.4 setuptools \ - && python -m pip install --upgrade -r requirements-dev.txt # install dev requirements \ - && python ./scripts/install_requirements.py # install plugin requirements \ - && python ./scripts/build_plist.py # build plist \ - && rm -r ./scripts/ # remove scripts dir +RUN python '# update pip' \ + -m pip --no-python-version-warning --disable-pip-version-check install --upgrade --no-cache-dir \ + pip==20.3.4 \ + setuptools \ + && python -m pip install --upgrade -r requirements-dev.txt '# install dev requirements' \ + && python ./scripts/install_requirements.py '# install plugin requirements' \ + && python ./scripts/build_plist.py '# build plist' \ + && rm -r ./scripts/ '# remove scripts dir' # single layer deployed image FROM scratch