Skip to content

Agent Zero AI framework

docker init update

frdel68020cd62691
diff --git a/docker/exe/Dockerfile b/docker/exe/Dockerfile
index e51788e11..9840f655c 100644
--- a/docker/exe/Dockerfile
+++ b/docker/exe/Dockerfile
@@ -33,8 +33,8 @@ RUN python3 -m venv $VIRTUAL_ENV
COPY initialize.sh /usr/local/bin/initialize.sh
RUN chmod +x /usr/local/bin/initialize.sh
-# Copy contents of filesystem directory to /
-COPY ./fs/ /
+# Copy contents of filesystem directory to /fs
+COPY ./fs/ /fs
# Ensure the virtual environment and pip setup
RUN $VIRTUAL_ENV/bin/pip install --upgrade pip
diff --git a/docker/exe/initialize.sh b/docker/exe/initialize.sh
index fdb10bc4a..115097ab9 100644
--- a/docker/exe/initialize.sh
+++ b/docker/exe/initialize.sh
@@ -1,17 +1,13 @@
#!/bin/bash
-# # Ensure .bashrc is in the root directory
-# if [ ! -f /root/.bashrc ]; then
-# cp /etc/skel/.bashrc /root/.bashrc
-# chmod 444 /root/.bashrc
-# fi
+# Copy all contents from /fs to root directory (/) with overwriting
+cp -r /fs/* / --no-preserve=ownership,mode
-# # Ensure .profile is in the root directory
-# if [ ! -f /root/.profile ]; then
-# cp /etc/skel/.bashrc /root/.profile
-# chmod 444 /root/.profile
-# fi
+# allow execution of /root/.bashrc and /root/.profile
+chmod 444 /root/.bashrc
+chmod 444 /root/.profile
+# update package list to save time later
apt-get update
# Start SSH service