# 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/info/tools # 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 tree vim #RUN mkdir /libraries #WORKDIR /libraries #RUN git clone https://bitbucket.wrs.com/scm/ct/cdad-generator.git /libraries #COPY ./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 COPY ./info/ /downloads/info/ COPY ./info_fromDocker/ /downloads/info_fromDocker/ # Set entrypoint (optional) CMD ["bash"]