feat(docker): optimize hardware.Dockerfile by cleaning up apt cache

This commit optimizes the Docker image size for the hardware setup by including commands to clean up the APT cache after package installation. This change reduces the overall image size by removing unnecessary files and directories that are not needed in the final image, leading to faster download and deployment times.
This commit is contained in:
Sergey Krashevich
2024-04-09 05:58:08 +03:00
parent 5fa31fe4d6
commit ef54b04ffc
+2 -1
View File
@@ -53,7 +53,8 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked --mount=type=cache,t
python3 curl jq \
intel-media-va-driver-non-free \
mesa-va-drivers \
libasound2-plugins
libasound2-plugins && \
apt-get clean && rm -rf /var/lib/apt/lists/*
COPY --link --from=rootfs / /