Skip to content

Commit

Permalink
fix(dockerfile): install security updates in docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
hanxiao committed May 23, 2022
1 parent 561b214 commit aa2d7c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfiles/debianx.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ ENV PIP_NO_CACHE_DIR=1 \
COPY extra-requirements.txt setup.py /tmp/

RUN cd /tmp/ && \
# apt package should be install before pypi package
if [ -n "${APT_PACKAGES}" ]; then apt-get update && apt list --upgradable | grep security |cut -d\/ -f1|xargs sudo apt-get install -y && \
# apt latest security packages should be install before pypi package
if [ -n "${APT_PACKAGES}" ]; then apt-get update && apt-get upgrade -y && \
apt-get install --no-install-recommends -y ${APT_PACKAGES}; fi && \
if [ -n "${PIP_TAG}" ]; then pip install --default-timeout=1000 --compile --extra-index-url $PIP_EXTRA_INDEX_URL ".[${PIP_TAG}]" ; fi && \
pip install --default-timeout=1000 --compile --extra-index-url ${PIP_EXTRA_INDEX_URL} . && \
Expand Down

0 comments on commit aa2d7c8

Please sign in to comment.