1
0
Fork 0
mirror of https://github.com/sdr-enthusiasts/docker-adsb-ultrafeeder.git synced 2024-11-24 06:40:09 +00:00

install size optimization

This commit is contained in:
kx1t 2023-04-28 10:04:43 -04:00
parent cda756d47b
commit a108941dd7

View file

@ -7,29 +7,29 @@ ENV URL_MLAT_CLIENT_REPO="https://github.com/wiedehopf/mlat-client.git" \
MLAT_INPUT_TYPE="auto" MLAT_INPUT_TYPE="auto"
RUN set -x && \ RUN set -x && \
# define packages needed for installation and general management of the container:
TEMP_PACKAGES=() && \ TEMP_PACKAGES=() && \
KEPT_PACKAGES=() && \ KEPT_PACKAGES=() && \
KEPT_PACKAGES+=(procps nano aptitude) && \
KEPT_PACKAGES+=(psmisc) && \
# Git and net-tools are needed to install and run @Mikenye's HealthCheck framework # Git and net-tools are needed to install and run @Mikenye's HealthCheck framework
KEPT_PACKAGES+=(git) && \ KEPT_PACKAGES+=(git) && \
# #
# Needed to run the mlat_client: # Needed to run the mlat_client:
KEPT_PACKAGES+=(python3) && \ POST_PACKAGES+=(python3-minimal) && \
KEPT_PACKAGES+=(python3-pip) && \
KEPT_PACKAGES+=(python3-setuptools) && \
KEPT_PACKAGES+=(python3-wheel) && \
# #
# These are needed to compile and install the mlat_client: # These are needed to compile and install the mlat_client:
TEMP_PACKAGES+=(python3) && \
TEMP_PACKAGES+=(build-essential) && \ TEMP_PACKAGES+=(build-essential) && \
TEMP_PACKAGES+=(debhelper) && \ TEMP_PACKAGES+=(debhelper) && \
TEMP_PACKAGES+=(python3-dev) && \ TEMP_PACKAGES+=(python3-dev) && \
TEMP_PACKAGES+=(python3-distutils-extra) && \ TEMP_PACKAGES+=(python3-distutils-extra) && \
TEMP_PACKAGES+=(python3-pip) && \
TEMP_PACKAGES+=(python3-setuptools) && \
TEMP_PACKAGES+=(python3-wheel) && \
# #
# packages needed for debugging - these can stay out in production builds:
#KEPT_PACKAGES+=(procps nano aptitude psmisc) && \
# Install all these packages: # Install all these packages:
apt-get update -q -y && \ apt-get update -q -y && \
apt-get install -o Dpkg::Options::="--force-confnew" --force-yes -y --no-install-recommends -q \ apt-get install -o Dpkg::Options::="--force-confnew" -y --no-install-recommends -q \
${KEPT_PACKAGES[@]} \ ${KEPT_PACKAGES[@]} \
${TEMP_PACKAGES[@]} && \ ${TEMP_PACKAGES[@]} && \
# #