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