From adf4fdea9bb8e234d6d48016535c36de81c0f27f Mon Sep 17 00:00:00 2001 From: Jeffrey Vervoort Date: Fri, 22 Sep 2023 17:29:43 +0200 Subject: [PATCH] Apply linting to docker files. --- data-loader/Dockerfile | 3 ++- examples/clients/python/Dockerfile | 1 + integration-test/Dockerfile | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/data-loader/Dockerfile b/data-loader/Dockerfile index e429866..9e652e5 100644 --- a/data-loader/Dockerfile +++ b/data-loader/Dockerfile @@ -11,7 +11,7 @@ COPY "test-data/KNMI/20221231.nc" "/test-data/KNMI/20221231.nc" # hadolint ignore=DL3013 RUN apt-get update \ && apt-get -y upgrade \ - && apt-get -y install build-essential \ + && apt-get -y install --no-install-recommends build-essential \ # Cleanup && rm -rf /usr/tmp \ && apt-get autoremove -y \ @@ -21,6 +21,7 @@ RUN apt-get update \ COPY "${PROJECT_DATASTORE_PATH}/protobuf/datastore.proto" "/protobuf/datastore.proto" COPY "${PROJECT_PYTHON_PATH}/requirements.txt" "${DOCKER_PATH}/requirements.txt" +# hadolint ignore=DL3013 RUN pip install --no-cache-dir --upgrade pip \ && pip install --no-cache-dir --upgrade -r "${DOCKER_PATH}/requirements.txt" diff --git a/examples/clients/python/Dockerfile b/examples/clients/python/Dockerfile index c584c2b..1a7625f 100644 --- a/examples/clients/python/Dockerfile +++ b/examples/clients/python/Dockerfile @@ -18,6 +18,7 @@ RUN apt-get update \ COPY "${PROJECT_DATASTORE_PATH}/protobuf/datastore.proto" "/protobuf/datastore.proto" COPY "${PROJECT_PYTHON_PATH}/requirements.txt" "${DOCKER_PATH}/requirements.txt" +# hadolint ignore=DL3013 RUN pip install --no-cache-dir --upgrade pip \ && pip install --no-cache-dir --upgrade -r "${DOCKER_PATH}/requirements.txt" diff --git a/integration-test/Dockerfile b/integration-test/Dockerfile index d8bae28..e5e0b11 100644 --- a/integration-test/Dockerfile +++ b/integration-test/Dockerfile @@ -18,6 +18,7 @@ RUN apt-get update \ COPY "${PROJECT_DATASTORE_PATH}/protobuf/datastore.proto" "/protobuf/datastore.proto" COPY "${PROJECT_PYTHON_PATH}/requirements.txt" "${DOCKER_PATH}/requirements.txt" +# hadolint ignore=DL3013 RUN pip install --no-cache-dir --upgrade pip \ && pip install --no-cache-dir --upgrade -r "${DOCKER_PATH}/requirements.txt"