Spaces:
Build error
Build error
Download Dockerfile from files/_: direct link, hf CLI and curl.
- Browser
- Download file 551 Bytes
-
https://huggingface.co/spaces/files/_/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/files/_/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/files/_/resolve/main/Dockerfile
551 Bytes
| FROM gtstef/filebrowser:latest AS filebrowser-source | |
| FROM nginx:alpine | |
| RUN apk add --no-cache bash | |
| COPY --from=filebrowser-source /fb/filebrowser /usr/local/bin/filebrowser | |
| WORKDIR /tmp | |
| RUN echo 'server { \ | |
| listen 7860; \ | |
| location / { \ | |
| proxy_pass http://127.0.0.1:80; \ | |
| proxy_set_header Host $host; \ | |
| proxy_set_header X-Real-IP $remote_addr; \ | |
| } \ | |
| }' > /etc/nginx/conf.d/default.conf | |
| RUN echo '#!/bin/bash\n\ | |
| filebrowser & nginx -g "daemon off;"' > /run.sh && chmod +x /run.sh | |
| EXPOSE 7860 | |
| ENTRYPOINT ["/run.sh"] |