Streamlined the entrypoint script.

This commit is contained in:
Ameer Hamza Khan
2025-12-25 20:24:42 +08:00
parent 6122e061a7
commit 17289aeac4
5 changed files with 97 additions and 56 deletions

View File

@@ -51,6 +51,13 @@ RUN echo "ALL ALL=NOPASSWD:ALL" > /etc/sudoers.d/01-allow-sudo
RUN git config --system user.name "ameer" && \
git config --system user.email "ameer@ahkhan.me"
# Copy utility scripts to /bin/ for independent execution
COPY scripts/bin/configure-china-mirrors /bin/configure-china-mirrors
COPY scripts/bin/update-apt-cache /bin/update-apt-cache
COPY scripts/bin/setup-user-home /bin/setup-user-home
RUN chmod +x /bin/configure-china-mirrors /bin/update-apt-cache /bin/setup-user-home
# Copy entrypoint script to root
COPY scripts/entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh