new era
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user