cafe / Dockerfile
Roasted Bean Deploy
🔧 Better error handling, startup logging, improved Dockerfile
ac212a2
Raw
History Blame Contribute Delete
266 Bytes
FROM node:20-slim
WORKDIR /app
# Install dependencies
COPY package.json package-lock.json ./
RUN npm ci --only=production 2>&1 || npm install --production
# Copy source
COPY . .
# HF Spaces sets PORT env var
ENV PORT=7860
EXPOSE 7860
CMD ["node", "server.js"]