From 55ac58f3bd20bf4a74240afcc86a08d7fb4c7fba Mon Sep 17 00:00:00 2001 From: abdulhade Date: Fri, 4 Apr 2025 20:36:34 +0300 Subject: [PATCH] Mounted the `files` directory. --- scripts/manager.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/manager.sh b/scripts/manager.sh index e331166..8035af5 100755 --- a/scripts/manager.sh +++ b/scripts/manager.sh @@ -59,6 +59,10 @@ build_docker_image() { export DOCKER_BUILDKIT=0 fi + echo + echo + echo + if docker build -t "$IMAGE_NAME" .; then echo "Docker image built successfully." return 0 @@ -248,7 +252,7 @@ get_run_command() { else RUN_COMMAND+=" --env API_HOST=0.0.0.0 --env API_PORT=${API_PORT:-8080} -p ${API_PORT:-8080}:8080" fi - RUN_COMMAND+=" $IMAGE_NAME" + RUN_COMMAND+=" -v files:/home/$USER/.db-middleware/files $IMAGE_NAME" echo $RUN_COMMAND }