Update Dockerfile
Browse files- Dockerfile +13 -9
Dockerfile
CHANGED
@@ -1,14 +1,18 @@
|
|
1 |
-
#
|
2 |
-
|
3 |
|
4 |
-
|
|
|
5 |
|
6 |
-
|
|
|
7 |
|
8 |
-
|
|
|
|
|
9 |
|
10 |
-
|
|
|
11 |
|
12 |
-
|
13 |
-
|
14 |
-
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
1 |
+
# Use the official Node.js image as base
|
2 |
+
FROM node:latest
|
3 |
|
4 |
+
# Set the working directory inside the container
|
5 |
+
WORKDIR /app
|
6 |
|
7 |
+
# Copy the main.js file from the host to the container
|
8 |
+
COPY main.js .
|
9 |
|
10 |
+
# Install any dependencies required by your main.js file (if any)
|
11 |
+
# For example, if you have a package.json file, you can uncomment the following line
|
12 |
+
# COPY package.json .
|
13 |
|
14 |
+
# Install dependencies
|
15 |
+
RUN npm install
|
16 |
|
17 |
+
# Command to run the main.js file
|
18 |
+
CMD ["node", "main.js"]
|
|