This commit is contained in:
Para Dox
2025-04-27 16:54:04 +07:00
parent 9c40ab7451
commit 938bf33053

View File

@@ -117,7 +117,7 @@ services:
# Install necessary packages # Install necessary packages
RUN apk add --no-cache bash coreutils sed findutils RUN apk add --no-cache bash coreutils sed findutils
# Create the prune script inline # Create the prune script inline
RUN <<EOF > /app/prune.sh RUN <<EOF > /prune.sh
#!/bin/bash #!/bin/bash
set -euo pipefail set -euo pipefail
# Settings # Settings
@@ -170,11 +170,11 @@ services:
echo "Moved files to backup. Total freed: $$freed_bytes bytes." echo "Moved files to backup. Total freed: $$freed_bytes bytes."
echo "Done." echo "Done."
EOF EOF
RUN chmod +x /app/prune.sh RUN chmod +x /prune.sh
environment: environment:
- BACKUP_DIR=/data/static_files/delete_me - BACKUP_DIR=/data/static_files/delete_me
- DATA_DIR=/data/static_files - DATA_DIR=/data/static_files
entrypoint: [/app/prune.sh] # Run the prune script manually entrypoint: [/prune.sh] # Run the prune script manually
restart: no restart: no
volumes: volumes:
- /root/.local/share/reth:/data - /root/.local/share/reth:/data