From 8c1c036e36d87a590f1b6027c5f134bfa473c133 Mon Sep 17 00:00:00 2001 From: fedy95 Date: Wed, 10 Mar 2021 18:14:35 +0300 Subject: [PATCH] test-docker-slim --- Makefile | 7 +++++-- image/Dockerfile.final | 11 ----------- 2 files changed, 5 insertions(+), 13 deletions(-) delete mode 100644 image/Dockerfile.final diff --git a/Makefile b/Makefile index 22ed2cc..a71c390 100644 --- a/Makefile +++ b/Makefile @@ -5,12 +5,15 @@ MAKEFLAGS += --silent YAMLLINT_TAG=latest build_yamllint: - #docker build -t fedy95/baseimage:yamllint-${YAMLLINT_TAG} image -f image/Dockerfile + docker build -t fedy95/baseimage:yamllint-${YAMLLINT_TAG} image -f image/Dockerfile # docker pull dslim/docker-slim:latest #-v /var/run/docker.sock:/var/run/docker.sock docker run --rm --volume /var/run/docker.sock:/var/run/docker.sock dslim/docker-slim:latest build \ --http-probe=false \ - --tag=fedy95/baseimage:yamllint-${YAMLLINT_TAG} fedy95/baseimage:yamllint-${YAMLLINT_TAG} --help + --tag=fedy95/baseimage:yamllint-${YAMLLINT_TAG} \ + fedy95/baseimage:yamllint-${YAMLLINT_TAG} +## TODO fix relaxed.yaml +#docker-slim build --http-probe=false --dockerfile Dockerfile --tag-fat dslimexamples/$IMAGE_NAME . # docker run --rm -v /var/run/docker.sock:/var/run/docker.sock dslim/docker-slim:latest build --http-probe=false fedy95/baseimage:yamllint-${YAMLLINT_TAG} diff --git a/image/Dockerfile.final b/image/Dockerfile.final deleted file mode 100644 index 46d4485..0000000 --- a/image/Dockerfile.final +++ /dev/null @@ -1,11 +0,0 @@ -FROM debian:bullseye-slim - -RUN apt-get update && \ - apt-get install -y yamllint && \ - rm -rf /var/lib/apt/lists/* - -COPY relaxed.yaml /yamllint/relaxed.yaml - -WORKDIR /data -ENTRYPOINT ["yamllint", "-c", "/yamllint/relaxed.yaml"] -CMD ["--help"]