File size: 618 Bytes
f32f3bb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM node:18-bullseye-slim

WORKDIR /app

# Install dependencies first (use package-lock if present)
COPY package.json package-lock.json* ./
RUN npm ci --omit=dev || npm install --production

# Copy project files
COPY . .

# Environment: TEST_BOT_TOKEN should be provided via HF Secrets or .env
ENV NODE_ENV=production

# Run the probe once at container start and keep container alive so the container
# remains available for inspection in Hugging Face Spaces. The probe will log
# results to stdout which you can view in the Spaces logs.
CMD ["sh", "-c", "node index.js || true; tail -f /dev/null"]