Download Dockerfile from eleeter/CrashX: direct link, hf CLI and curl.
- Browser
- Download file 436 Bytes
-
https://huggingface.co/spaces/eleeter/CrashX/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/eleeter/CrashX/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/eleeter/CrashX/resolve/main/Dockerfile
436 Bytes
| # Use a lightweight Node.js image | |
| FROM node:18-slim | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy package files and install dependencies | |
| COPY package*.json ./ | |
| RUN npm install --production | |
| # Copy the rest of the application code | |
| COPY . . | |
| # Hugging Face Spaces requires the app to listen on port 7860 | |
| ENV PORT=7860 | |
| ENV NODE_ENV=production | |
| # Expose the port | |
| EXPOSE 7860 | |
| # Start the application directly | |
| CMD ["node", "server/index.js"] | |