Rahul2298 commited on
Commit
0a31f66
·
verified ·
1 Parent(s): 099bdab

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -22
Dockerfile CHANGED
@@ -1,22 +1,17 @@
1
- #
2
- # SPDX-FileCopyrightText: Hadad <hadad@linuxmail.org>
3
- # SPDX-License-Identifier: Apache-2.0
4
- #
5
-
6
- # Use a specific container image for the sever
7
- FROM hadadrjt/ai:latest
8
-
9
- # Set the main working directory inside the container
10
- WORKDIR /node
11
-
12
- # Copy all files into the container
13
- COPY . .
14
-
15
- # Install all dependencies
16
- RUN npm install
17
-
18
- # Open the port so the web can be accessed
19
- EXPOSE 7860
20
-
21
- # Start the server
22
- CMD ["npm", "start"]
 
1
+ # Use official Node.js LTS image
2
+ FROM node:18-slim
3
+
4
+ # Set the main working directory inside the container
5
+ WORKDIR /app
6
+
7
+ # Copy all files into the container
8
+ COPY . .
9
+
10
+ # Install all dependencies
11
+ RUN npm install
12
+
13
+ # Expose the port so Hugging Face can access the app
14
+ EXPOSE 7860
15
+
16
+ # Start the server
17
+ CMD ["npm", "start"]