install caddy with apt
This commit is contained in:
parent
15cc22414b
commit
6008234f62
1 changed files with 12 additions and 2 deletions
14
Dockerfile
14
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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue