Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
[anaconda] - changes as requested
  • Loading branch information
gauravsaini04 committed Jun 7, 2024
commit 0b913ddb031603e182a0b116668c367c6de946fe
13 changes: 5 additions & 8 deletions src/anaconda/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,11 @@ FROM continuumio/anaconda3 as upstream
# Verify OS version is expected one
RUN . /etc/os-release && if [ "${VERSION_CODENAME}" != "bullseye" ]; then exit 1; fi

# Run vulerable packages script for installation
COPY ./install_vulnerable_packages.sh /tmp/install_vulnerable_packages.sh

#Make the script execuitable
RUN chmod +x /tmp/install_vulnerable_packages.sh

#Execute the script file
RUN /tmp/install_vulnerable_packages.sh
# Temporary: Upgrade python packages due to mentioned CVEs
# They are installed by the base image (continuumio/anaconda3) which does not have the patch.
COPY ./apply_security_patches.sh /tmp/apply_security_patches.sh
RUN chmod +x /tmp/apply_security_patches.sh
RUN /tmp/apply_security_patches.sh

# Reset and copy updated files with updated privs to keep image size down
FROM mcr.microsoft.com/devcontainers/base:1-bullseye
Expand Down