Dhurgh commited on
Commit
546580c
·
1 Parent(s): 3b52afd

Add Dockerfile manually

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -0
Dockerfile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use the official lightweight Node image
2
+ FROM node:lts-alpine
3
+
4
+ # Set the working directory inside the container
5
+ WORKDIR /app
6
+
7
+ # Copy package config files and install dependencies
8
+ COPY package*.json ./
9
+ RUN npm install
10
+
11
+ # Copy the rest of your server code
12
+ COPY . .
13
+
14
+ # Expose Hugging Face's mandatory port
15
+ EXPOSE 7860
16
+
17
+ # Command to start your Express server
18
+ CMD ["node", "server.js"]