Spaces:
Paused
Paused
Download Dockerfile from newservers/fzf: direct link, hf CLI and curl.
- Browser
- Download file 518 Bytes
-
https://huggingface.co/spaces/newservers/fzf/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/newservers/fzf/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/newservers/fzf/resolve/main/Dockerfile
518 Bytes
| FROM node:18 | |
| WORKDIR /app | |
| # Install unzip (required for extracting the zip file) | |
| RUN apt-get update && apt-get install -y unzip curl | |
| # Clean the app directory | |
| RUN rm -rf /app/* | |
| # Download the repo as a zip and extract it | |
| RUN curl -L https://github.com/ReirLair/scanx/archive/refs/heads/main.zip -o repo.zip \ | |
| && unzip repo.zip \ | |
| && mv scanx-main/* . \ | |
| && rm -rf scanx-main repo.zip | |
| # Install dependencies | |
| RUN npm install | |
| # Set permissions | |
| RUN chmod -R 777 /app | |
| EXPOSE 7860 | |
| CMD ["node", "server.js"] |