Skip to content

Commit

Permalink
fix: remove binutils will also remove gcc (#1100)
Browse files Browse the repository at this point in the history
  • Loading branch information
qrzbing authored Jul 31, 2023
1 parent 7240afb commit 8288978
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ COPY ./fonts/sarasa-mono-sc-regular.ttf /usr/share/fonts/
RUN apt-get update && \
apt install --no-install-recommends xvfb binutils build-essential qtbase5-dev wkhtmltopdf ffmpeg -yq && \
(strip --remove-section=.note.ABI-tag /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 || true) && \
apt-get remove --purge -yq binutils && \
apt-get clean && \
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false && \
rm -rf /var/lib/apt/lists/*
Expand All @@ -18,6 +17,8 @@ WORKDIR /app
COPY requirements.txt /app
RUN pip install --no-cache-dir -r requirements.txt && pip cache purge

RUN apt-get remove --purge -yq binutils

COPY . /app

CMD ["/bin/bash", "/app/docker/start.sh"]

0 comments on commit 8288978

Please sign in to comment.