HenzHosting commited on
Commit
7e246db
·
verified ·
1 Parent(s): ca945f0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -8
Dockerfile CHANGED
@@ -1,20 +1,20 @@
1
- # Use a lightweight Node.js image
2
  FROM node:18-bullseye
3
 
 
 
 
4
  # Set working directory
5
  WORKDIR /app
6
 
7
- RUN git clone https://github.com/BNNUSA/Binace-Clone.git /app
8
-
9
- # Set correct permissions
10
- RUN chmod -R 777 /app
11
 
12
  # Install project dependencies
13
- WORKDIR /app
14
  RUN npm install
15
 
16
- # Expose a port
17
  EXPOSE 7860
18
 
19
- # Start the application
20
  CMD ["node", "server.js"]
 
1
+ # Use a lightweight Node.js image with necessary build tools
2
  FROM node:18-bullseye
3
 
4
+ # Install system dependencies (git is required for cloning)
5
+ RUN apt-get update && apt-get install -y git
6
+
7
  # Set working directory
8
  WORKDIR /app
9
 
10
+ # Clone repository (ensure correct structure)
11
+ RUN git clone https://github.com/BNNUSA/Binace-Clone.git . # Note the '.' at end
 
 
12
 
13
  # Install project dependencies
 
14
  RUN npm install
15
 
16
+ # Expose the correct port (verify your application's port)
17
  EXPOSE 7860
18
 
19
+ # Start the application (verify entry file location)
20
  CMD ["node", "server.js"]