Create Dockerfile
Browse files- Dockerfile +29 -0
Dockerfile
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Use an official Node.js runtime as a parent image.
|
| 2 |
+
FROM node:18-alpine
|
| 3 |
+
|
| 4 |
+
# Set the working directory in the container.
|
| 5 |
+
WORKDIR /app
|
| 6 |
+
|
| 7 |
+
# Copy package.json and package-lock.json (if available) to install dependencies.
|
| 8 |
+
COPY package*.json ./
|
| 9 |
+
|
| 10 |
+
# Install any needed packages.
|
| 11 |
+
RUN npm install --production
|
| 12 |
+
|
| 13 |
+
# Copy the rest of the application code.
|
| 14 |
+
COPY . .
|
| 15 |
+
|
| 16 |
+
# Expose the port that your application will listen on.
|
| 17 |
+
EXPOSE 7860
|
| 18 |
+
|
| 19 |
+
# Define environment variables if needed (or set these in the hosting environment).
|
| 20 |
+
# For example:
|
| 21 |
+
# ENV META_ACCESS_TOKEN=your_meta_access_token
|
| 22 |
+
# ENV META_PHONE_NUMBER_ID=your_meta_phone_number_id
|
| 23 |
+
# ENV META_VERIFY_TOKEN=your_meta_verify_token
|
| 24 |
+
# ENV DEEPSEEK_API_KEY=your_deepseek_api_key
|
| 25 |
+
# ENV PYTHON_API_BASE_URL=http://your-python-api:port
|
| 26 |
+
# ENV NVIDIA_API_KEY=your_nvidia_api_key
|
| 27 |
+
|
| 28 |
+
# Command to run the application. Adjust the entry point file (e.g., server.js) as needed.
|
| 29 |
+
CMD ["node", "server.js"]
|