From 8f07d1617616288769a1b846786cb3a5351abcbc Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Fri, 8 Jul 2022 22:36:02 +0200 Subject: [PATCH] Improve HAOS builder Dockerfile (#2011) --- .dockerignore | 15 +++------------ Dockerfile | 17 +++++++---------- 2 files changed, 10 insertions(+), 22 deletions(-) diff --git a/.dockerignore b/.dockerignore index eea6a21bd..965f4df2a 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,12 +1,3 @@ -# We don't need this folder because we map the hole folder -buildroot/ -buildroot-external/ -buildroot-patches/ - -# Output/Release directory gets created using build scripts -output*/ -release/ - -# Ignore hidden directories as well -.git/ -.github/ +# Ignore everything except what we really need +* +!scripts/ diff --git a/Dockerfile b/Dockerfile index abb148367..150605f20 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,27 +28,24 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ cpio \ file \ git \ + graphviz \ + jq \ make \ ncurses-dev \ + openssh-client \ patch \ perl \ python3 \ python3-matplotlib \ python-is-python3 \ - graphviz \ + qemu-utils \ rsync \ + skopeo \ sudo \ unzip \ - zip \ - wget \ - qemu-utils \ - openssh-client \ vim \ - && rm -rf /var/lib/apt/lists/* - -RUN apt-get update && apt-get install -y --no-install-recommends \ - skopeo \ - jq \ + wget \ + zip \ && rm -rf /var/lib/apt/lists/* # Init entry