Spaces:
Paused
Paused
File size: 789 Bytes
725472c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | FROM ubuntu:22.04
ENV HF_SPACE_PORT=7860
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' \
> /etc/apt/sources.list.d/caddy-stable.list \
&& apt-get update && apt-get install -y caddy \
&& rm -rf /var/lib/apt/lists/*
COPY caddy/Caddyfile /etc/caddy/Caddyfile
COPY modules/ /modules/
RUN for install in /modules/*/install.sh; do \
[ -f "$install" ] && sh "$install"; \
done
COPY start.sh /start.sh
RUN chmod +x /start.sh
EXPOSE ${HF_SPACE_PORT}
CMD ["/start.sh"]
|