Update Dockerfile

This commit is contained in:
SovereigntyIsNotFreedom 2025-06-13 07:55:46 +02:00
parent 8a5ba72468
commit bab3fb407b

View file

@ -4,13 +4,13 @@
################################################################################### ###################################################################################
# Stage 1: Builder stage to clone the Darknet Lantern repository via its onion link. # Stage 1: Builder stage to clone the Darknet Lantern repository via its onion link.
FROM quay.io/lib/debian:bookworm-slim AS builder FROM debian:bookworm-slim AS builder
LABEL stage="builder" LABEL stage="builder"
ENV DEBIAN_FRONTEND=noninteractive ENV DEBIAN_FRONTEND=noninteractive
# Install required utilities. # Install required utilities.
RUN apt update && \ RUN apt-get update && \
apt install -y tor git torsocks curl && \ apt-get install -y tor git torsocks curl && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*
# Create a working directory. # Create a working directory.
@ -26,12 +26,12 @@ RUN set -ex && \
sleep 10 && \ sleep 10 && \
until curl --proxy socks5h://localhost:9050 -Is https://check.torproject.org | grep "200"; do \ until curl --proxy socks5h://localhost:9050 -Is https://check.torproject.org | grep "200"; do \
echo "Waiting for Tor to bootstrap..."; \ echo "Waiting for Tor to bootstrap..."; \
sleep 5; \ sleep 15; \
done && \ done && \
git -c remote.origin.proxy=socks5h://127.0.0.1:9050 clone --depth=1 ${LANTERN_REPO} darknet-lantern git -c remote.origin.proxy=socks5h://127.0.0.1:9050 clone --depth=1 ${LANTERN_REPO} darknet-lantern
# Stage 2: Final runtime image. # Stage 2: Final runtime image.
FROM quay.io/lib/debian:bookworm-slim FROM debian:bookworm-slim
ENV DEBIAN_FRONTEND=noninteractive ENV DEBIAN_FRONTEND=noninteractive
# Note: Do not hard-code INSTANCE_DOMAIN here. # Note: Do not hard-code INSTANCE_DOMAIN here.
@ -41,8 +41,8 @@ ENV DEBIAN_FRONTEND=noninteractive
# - INSTANCE_DOMAIN=lantern.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion # - INSTANCE_DOMAIN=lantern.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion
# Install runtime dependencies (including cron and git). # Install runtime dependencies (including cron and git).
RUN apt update &&\ RUN apt-get update &&\
apt install -y \ apt-get install -y \
nginx \ nginx \
php8.2-fpm \ php8.2-fpm \
python3 \ python3 \