Download Dockerfile from cairan/j2: direct link, hf CLI and curl.
- Browser
- Download file 1.09 kB
-
https://huggingface.co/spaces/cairan/j2/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/cairan/j2/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/cairan/j2/resolve/main/Dockerfile
1.09 kB
| FROM jellyfin/jellyfin:latest | |
| USER root | |
| RUN apt update \ | |
| && apt install --yes --no-install-recommends nginx \ | |
| && rm -rf /var/lib/apt/lists/* \ | |
| && mkdir -p /config /cache /data /tmp/nginx-client-body | |
| RUN cat >/etc/nginx/nginx.conf <<'EOF' | |
| events {} | |
| http { | |
| client_max_body_size 0; | |
| server { | |
| listen 7860; | |
| location / { | |
| proxy_pass http://127.0.0.1:8096; | |
| proxy_buffering off; | |
| proxy_http_version 1.1; | |
| proxy_request_buffering off; | |
| proxy_set_header Connection "upgrade"; | |
| proxy_set_header Host $host; | |
| proxy_set_header Upgrade $http_upgrade; | |
| proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
| proxy_set_header X-Forwarded-Host $host; | |
| proxy_set_header X-Forwarded-Port 443; | |
| proxy_set_header X-Forwarded-Proto https; | |
| proxy_set_header X-Real-IP $remote_addr; | |
| } | |
| } | |
| } | |
| EOF | |
| EXPOSE 7860 | |
| ENTRYPOINT [] | |
| CMD ["/bin/sh", "-c", "\ | |
| /jellyfin/jellyfin \ | |
| --datadir /config \ | |
| --cachedir /cache \ | |
| --ffmpeg /usr/lib/jellyfin-ffmpeg/ffmpeg \ | |
| --service \ | |
| & nginx -g 'daemon off;' \ | |
| "] |