no1b4me commited on
Commit
a9a32f5
·
verified ·
1 Parent(s): f2a033d

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +22 -0
Dockerfile ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:18-slim
2
+
3
+ # Set the working directory inside the container
4
+ WORKDIR /usr/src/app
5
+
6
+ # Copy the package.json and package-lock.json if available
7
+ COPY package*.json ./
8
+
9
+ # Install the app dependencies
10
+ RUN npm install --production
11
+
12
+ # Copy the rest of the application code to the container
13
+ COPY . .
14
+
15
+ # Set environment variable to production
16
+ ENV NODE_ENV=production
17
+
18
+ # Expose the port Hugging Face Spaces will bind to
19
+ EXPOSE 3000
20
+
21
+ # Command to start the app
22
+ CMD ["npm", "start"]