HenzHosting commited on
Commit
5102f05
·
verified ·
1 Parent(s): a4c9ebd

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +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/yummi184/Coinbase-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"]