Skip to content

Commit

Permalink
apt update and upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
jlaw9 authored Jul 11, 2024
1 parent c21a75b commit a0a8246
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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"
Expand Down

0 comments on commit a0a8246

Please sign in to comment.