use timestamp for image tag, remove volume mounts when starting container

This commit is contained in:
evan
2025-05-02 19:24:07 -07:00
parent db0684b21d
commit ec43d6519c
2 changed files with 5 additions and 6 deletions
+2 -3
View File
@@ -42,7 +42,6 @@ fi
echo "Starting new container for ${HOST} environment..."
docker run -d \
--restart=always \
$VOLUME_MOUNTS \
--env-file /home/openfront/.env \
--name ${CONTAINER_NAME} \
$DOCKER_IMAGE
@@ -52,8 +51,8 @@ if [ $? -eq 0 ]; then
# Final cleanup after successful deployment
echo "Performing final cleanup of unused Docker resources..."
echo "Removing unused images (not tagged and not referenced)..."
docker image prune -f
echo "Removing unused images (not referenced)..."
docker image prune -a -f
docker container prune -f
echo "Cleanup complete."
else