ngoctuanai commited on
Commit
1216dc3
1 Parent(s): 5794470

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -0
Dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:alpine
2
+
3
+ # Set the working directory
4
+ WORKDIR /app
5
+
6
+ # Copy only package.json and package-lock.json first to leverage Docker cache
7
+ COPY package*.json ./
8
+
9
+ # Install dependencies
10
+ RUN apk add --no-cache openssl curl && npm install
11
+
12
+ # Copy the rest of the application code
13
+ COPY . .
14
+
15
+ # Expose the application port
16
+ EXPOSE 7860
17
+
18
+ # Set the command to run the application
19
+ CMD ["node", "index.js"]