Spaces:
Runtime error
Runtime error
Download Dockerfile from damndeepesh-dev/RippleWorkers: direct link, hf CLI and curl.
- Browser
- Download file 714 Bytes
-
https://huggingface.co/spaces/damndeepesh-dev/RippleWorkers/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/damndeepesh-dev/RippleWorkers/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/damndeepesh-dev/RippleWorkers/resolve/main/Dockerfile
714 Bytes
| # Use a lightweight Node.js image | |
| FROM node:20-slim | |
| # Install OpenSSL (required for Prisma) | |
| RUN apt-get update -y && apt-get install -y openssl | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy package files first for better caching | |
| COPY package*.json ./ | |
| # Install dependencies (including production ones) | |
| RUN npm install | |
| # Copy Prisma schema | |
| COPY prisma ./prisma/ | |
| # Generate Prisma Client | |
| RUN npx prisma generate | |
| # Copy the rest of the application code | |
| COPY . . | |
| # Set environment to production | |
| ENV NODE_ENV=production | |
| # The CMD to run the worker script | |
| # We use tsx to run the typescript file directly. | |
| # Using 'npx tsx' is fine, or we can use the installed binary. | |
| CMD ["npx", "tsx", "src/scripts/worker.ts"] | |