diff --git a/Dockerfile b/Dockerfile index 107d659..c70e822 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,12 +7,22 @@ ENV PATH="/app/.venv/bin:$PATH" ENV STATIC_ROOT=/app/staticfiles ENV MEDIA_ROOT=/app/mediafiles +# Install system dependencies including Caddy +RUN apt-get update && apt-get install -y \ + debian-keyring \ + debian-archive-keyring \ + apt-transport-https \ + curl \ + && curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg \ + && curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | tee /etc/apt/sources.list.d/caddy-stable.list \ + && apt-get update \ + && apt-get install -y caddy \ + && rm -rf /var/lib/apt/lists/* + # Install binaries with correct permissions COPY --from=ghcr.io/astral-sh/uv:latest --chown=root:root --chmod=755 /uv /usr/local/bin/uv -COPY --from=caddy:latest --chown=root:root --chmod=755 /usr/bin/caddy /usr/local/bin/caddy COPY --chmod=755 docker/run.sh /usr/local/bin/runhub.sh - COPY docker/Caddyfile /app/config/caddy/Caddyfile ADD . /app