# Use Ubuntu 22.04 as the base image FROM ubuntu:22.04 # Set environment variables to non-interactive ENV DEBIAN_FRONTEND=noninteractive # Update package lists and install necessary tools RUN apt-get update && apt-get install -y \ apt-utils \ wget \ && apt-get clean # Create a directory to store downloaded packages RUN mkdir -p /downloads # Download Python packages and their dependencies # Replace 'python3-requests python3-numpy' with the packages you need RUN apt-get update && \ apt-get download -o=dir::cache=/downloads python3-requests python3-numpy # Download Python packages and their dependencies # Replace 'python3-requests python3-numpy' with the packages you need RUN apt-get update && \ apt-get install -y apt-offline #RUN apt-offline set ~/apt-offline.sig RUN apt-get update && \ apt-get install -y git RUN mkdir /libraries WORKDIR /libraries #COPY /home/drouleau/mydev/libraries/* /libraries # List the contents of the download directory RUN ls -l /downloads # Set the working directory WORKDIR /downloads # copy the packages into the container COPY ./downloaded_packages/*deb /downloads # Set entrypoint (optional) CMD ["bash"]