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