mirror of
http://git.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/nihilist/darknet-lantern.git
synced 2025-05-16 20:26:58 +00:00
updated dockerfile + option 2 and 3 merging is WIP
This commit is contained in:
parent
b772fc454d
commit
97fcc4c8c4
3 changed files with 117 additions and 86 deletions
|
@ -25,7 +25,6 @@ RUN set -ex && \
|
|||
|
||||
# Stage 2: Final runtime image.
|
||||
FROM debian:bookworm-slim
|
||||
LABEL maintainer="you@example.com"
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
# Note: Do not hard-code INSTANCE_DOMAIN here.
|
||||
|
@ -60,9 +59,9 @@ RUN ln -sf /etc/nginx/sites-available/lantern.conf /etc/nginx/sites-enabled/ &&
|
|||
# Create cron job file using a heredoc to avoid quoting issues.
|
||||
RUN cat <<'EOF' > /etc/cron.d/lantern-jobs
|
||||
# Update repo daily at 2:00 AM
|
||||
0 2 * * * root cd /srv/darknet-lantern && git pull origin master >> /var/log/lantern_git_update.log 2>&1
|
||||
# Run lantern.py every 3 hours, piping "4\n" as input
|
||||
0 */3 * * * root sh -c "printf '4\n' | python3 /srv/darknet-lantern/scripts/lantern.py"
|
||||
0 2 * * * root sh -c "cd /srv/darknet-lantern && git -c http.proxy=socks5://127.0.0.1:9050 pull origin main" >> /var/log/lantern_git_update.log 2>&
|
||||
# Run lantern.py every 3 hours, piping "4\n" as input to sync links coming from other webring participants
|
||||
0 */3 * * * root python3 /srv/darknet-lantern/scripts/lantern.py 4
|
||||
# Run uptimechecker.py every 3 hours
|
||||
0 */3 * * * root python3 /srv/darknet-lantern/scripts/uptimechecker.py >> /var/log/uptimechecker.log 2>&1
|
||||
EOF
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue