unknownfriend00007 commited on
Commit
9f8197c
·
verified ·
1 Parent(s): 5d78423

Create Dockerfile

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