File size: 912 Bytes
c2c8d8c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b00f306
 
 
 
 
 
c2c8d8c
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# 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"]