Skip to content

Commit

Permalink
mlat-client: make a bunch of packages temporary (#95)
Browse files Browse the repository at this point in the history
turns out not all of the packages are necessary for mlat-client to run
  • Loading branch information
fredclausen authored Jun 1, 2024
2 parents 07586de + bab1465 commit cf7535f
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ RUN set -x && \
#
# These are needed to compile and install the mlat_client:
KEPT_PACKAGES+=(python3) && \
KEPT_PACKAGES+=(python3-pkg-resources) && \
TEMP_PACKAGES+=(build-essential) && \
TEMP_PACKAGES+=(debhelper) && \
KEPT_PACKAGES+=(python3-dev) && \
KEPT_PACKAGES+=(python3-distutils-extra) && \
KEPT_PACKAGES+=(python3-pip) && \
KEPT_PACKAGES+=(python3-setuptools) && \
KEPT_PACKAGES+=(python3-pkg-resources) && \
KEPT_PACKAGES+=(python3-wheel) && \
TEMP_PACKAGES+=(python3-dev) && \
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) && \
Expand All @@ -49,8 +49,9 @@ RUN set -x && \
# apt-get install -o Dpkg::Options::="--force-confnew" -y --no-install-recommends -q \
# ${POST_PACKAGES[@]} && \
apt-get autoremove -q -o APT::Autoremove::RecommendsImportant=0 -o APT::Autoremove::SuggestsImportant=0 -y && \
find /usr | grep -E "/__pycache__$" | xargs rm -rf || true && \
apt-get clean -q -y && \
rm -rf /src /tmp/* /var/lib/apt/lists/* /git && \
rm -rf /src /tmp/* /var/lib/apt/lists/* /git /var/cache/* && \
#
# Do some stuff for kx1t's convenience:
echo "alias dir=\"ls -alsv\"" >> /root/.bashrc && \
Expand Down

0 comments on commit cf7535f

Please sign in to comment.