Skip to content

Commit

Permalink
Removed unused packages from Docker image (#890)
Browse files Browse the repository at this point in the history
Signed-off-by: Abolfazl Shahbazi <abolfazl.shahbazi@intel.com>
  • Loading branch information
ashahba authored Oct 20, 2023
1 parent 1af2123 commit 3847e51
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions openfl-docker/Dockerfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,20 @@ ARG INSTALL_SOURCES="yes"

WORKDIR /zlib
#zlib install to 1.2.13
RUN apt-get update && apt-get install -y --no-install-recommends wget build-essential
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing wget build-essential
RUN wget --no-check-certificate https://github.com/madler/zlib/archive/refs/tags/v1.2.13.tar.gz && tar -xvf ./v1.2.13.tar.gz && cd zlib-1.2.13 && ./configure --prefix=/usr && make && make install
RUN rm -rf zlib-1.2.13 && rm -rf v1.2.13.tar.gz
#RUN apt-get -y remove wget build-essential
RUN apt-get remove --purge -y wget build-essential && \
apt-get autoclean -y && \
apt-get auto-remove -y

WORKDIR /thirdparty

RUN dpkg --get-selections | grep -v deinstall | awk '{print $1}' > base_packages.txt && \
rm -rf /var/lib/apt/lists/*

RUN apt-get update && \
apt-get install -y --no-install-recommends \
apt-get install -y --no-install-recommends --fix-missing \
openssh-server=\* \
python3.10=\* \
python3-distutils=\* \
Expand Down

0 comments on commit 3847e51

Please sign in to comment.