Spaces:
Paused
Paused
| 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"] | |