1
0
Fork 0
mirror of synced 2024-06-27 18:40:52 +12:00

remove python-dev after build process

This commit is contained in:
Nick Sweeting 2020-08-13 23:55:02 -04:00
parent fedbfda668
commit c37b58f100

View file

@ -43,12 +43,6 @@ RUN apt-get update -qq \
dumb-init gosu unzip curl \ dumb-init gosu unzip curl \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
# Install Python environment
RUN apt-get update -qq \
&& apt-get install -qq -y --no-install-recommends \
ipython3 python-dev python3-dev \
&& rm -rf /var/lib/apt/lists/*
# Install Node environment # Install Node environment
RUN curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - \ RUN curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - \
&& echo 'deb https://deb.nodesource.com/node_14.x buster main' >> /etc/apt/sources.list \ && echo 'deb https://deb.nodesource.com/node_14.x buster main' >> /etc/apt/sources.list \
@ -72,9 +66,9 @@ RUN python -m venv --clear --symlinks "$VENV_PATH" \
ADD ./archivebox.egg-info/requires.txt "$CODE_DIR/archivebox.egg-info/requires.txt" ADD ./archivebox.egg-info/requires.txt "$CODE_DIR/archivebox.egg-info/requires.txt"
RUN apt-get update -qq \ RUN apt-get update -qq \
&& apt-get install -qq -y --no-install-recommends \ && apt-get install -qq -y --no-install-recommends \
build-essential \ build-essential python-dev python3-dev \
&& grep -B 1000 -E '^$' "$CODE_DIR/archivebox.egg-info/requires.txt" | pip install --quiet -r /dev/stdin \ && grep -B 1000 -E '^$' "$CODE_DIR/archivebox.egg-info/requires.txt" | pip install --quiet -r /dev/stdin \
&& apt-get purge -y build-essential \ && apt-get purge -y build-essential python-dev python3-dev \
&& apt-get autoremove -y \ && apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*