| # Use an official Node.js runtime as a parent image. | |
| FROM node:18-alpine | |
| # Set the working directory in the container. | |
| WORKDIR /app | |
| # Copy package.json and package-lock.json (if available) to install dependencies. | |
| COPY package*.json ./ | |
| # Install any needed packages. | |
| RUN npm install --production | |
| # Copy the rest of the application code. | |
| COPY . . | |
| # Expose the port that your application will listen on. | |
| EXPOSE 7860 | |
| # Define environment variables if needed (or set these in the hosting environment). | |
| # For example: | |
| ENV META_ACCESS_TOKEN=your_meta_access_token | |
| ENV META_PHONE_NUMBER_ID=your_meta_phone_number_id | |
| ENV META_VERIFY_TOKEN=your_meta_verify_token | |
| ENV DEEPSEEK_API_KEY=your_deepseek_api_key | |
| ENV PYTHON_API_BASE_URL=http://your-python-api:port | |
| ENV NVIDIA_API_KEY=your_nvidia_api_key | |
| # Command to run the application. Adjust the entry point file (e.g., server.js) as needed. | |
| CMD ["node", "server.js"] | |