Spaces:
Sleeping
Sleeping
Download Dockerfile from leeykike/browserflow: direct link, hf CLI and curl.
- Browser
- Download file 798 Bytes
-
https://huggingface.co/spaces/leeykike/browserflow/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/leeykike/browserflow/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/leeykike/browserflow/resolve/main/Dockerfile
798 Bytes
| FROM rclone/rclone:latest AS rclone | |
| FROM ghcr.io/ykxvk8yl5l/browserflow/browserflow:latest | |
| ENV REMOTE_FOLDER="huggingface:/browserflow" | |
| RUN apt-get update && apt-get install -y \ | |
| curl \ | |
| ca-certificates \ | |
| nginx \ | |
| gnupg \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \ | |
| && apt-get install -y nodejs | |
| RUN npm install -g pm2 | |
| RUN node -v && npm -v && pm2 -v | |
| COPY --from=rclone /usr/local/bin/rclone /usr/bin/rclone | |
| RUN rclone config -h | |
| COPY nginx.conf /etc/nginx/nginx.conf | |
| COPY apps.conf /etc/nginx/conf.d/apps.conf | |
| COPY bootstrap.py /app/backend/bootstrap.py | |
| COPY backup.sh /app/backup.sh | |
| COPY entrypoint.sh /entrypoint.sh | |
| RUN chmod a+x /app/backup.sh | |
| RUN chmod a+x /entrypoint.sh | |
| EXPOSE 5700 | |
| ENTRYPOINT ["/entrypoint.sh"] | |