File size: 407 Bytes
95b8dca | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | # Use Node.js 20 base image
FROM node:20
# Create and change to the app directory
WORKDIR /usr/src/app
# Copy package.json and package-lock.json first for caching
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy the rest of the application code
COPY . .
# Expose the port (Render/HuggingFace use this for keep-alive)
EXPOSE 7860
ENV PORT=7860
# Start the bot
CMD [ "npm", "start" ]
|