Download Dockerfile from txtorg/testC: direct link, hf CLI and curl.
- Browser
- Download file 514 Bytes
-
https://huggingface.co/spaces/txtorg/testC/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/txtorg/testC/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/txtorg/testC/resolve/main/Dockerfile
514 Bytes
| FROM node:18 | |
| # Install git | |
| RUN apt-get update && apt-get install -y git | |
| # Set working directory | |
| WORKDIR /app | |
| # Clean /app in case anything is preexisting | |
| RUN rm -rf /app/* | |
| # Clone the full repository into /app | |
| RUN git clone https://github.com/ReirLair/him.git /app | |
| # Set full permissions (not recommended for production) | |
| RUN chmod -R 777 /app | |
| # Install dependencies if package.json exists | |
| RUN npm install mongodb node-cron express axios fs-extra uuid bcrypt cors | |
| # Start the server | |
| CMD ["node", "server.js"] |