From a0a8246052638100d0b0754a479c26e0c823761a Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Thu, 11 Jul 2024 16:08:33 -0600 Subject: [PATCH] apt update and upgrade --- Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Dockerfile b/Dockerfile index ab5271a..d089bbf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,6 @@ FROM condaforge/mambaforge +# update to fix some vulnerabilities +RUN apt-get update && apt-get -y upgrade COPY etc/environment.yml /tmp/environment.yml WORKDIR /tmp @@ -10,6 +12,11 @@ COPY src /deploy/app COPY etc/run_tests.sh /deploy/app RUN chmod +x /deploy/app/run_tests.sh +# cleanup after the update and upgrade +RUN rm -rf /var/lib/apt/lists/* \ + && apt-get autoremove -y \ + && apt-get clean + WORKDIR /deploy/app ENV PYTHONPATH="${PYTHONPATH}:/deploy/app"