tg-prob / Dockerfile
bonesmasher's picture
Upload 5 files
f32f3bb verified
raw
history blame contribute delete
618 Bytes
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"]