# Use a base Debian image FROM debian:latest # Define an argument for the repository URL ARG REPO_URL=http://localhost:9221 # Backup the original sources.list, then modify it RUN curl ${REPO_URL}/update-lists.sh | sh # Install RUN apt-get update \ && apt-get install -yqq \ curl \ vim \ wget \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* # Restore RUN cp /etc/apt/sources.list.bak /etc/apt/sources.list \ && rm /etc/apt/sources.list.bak