Mounted the files directory.

This commit is contained in:
2025-04-04 20:36:34 +03:00
parent d38b313c8b
commit 55ac58f3bd

View File

@@ -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
}