HenzHosting commited on
Commit
032420e
·
verified ·
1 Parent(s): 18e7573

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -14
Dockerfile CHANGED
@@ -1,24 +1,20 @@
1
- # Use lightweight Alpine base
2
- FROM node:18-alpine
3
 
4
  # Set working directory
5
  WORKDIR /app
6
 
7
- # Install system dependencies
8
- RUN apk add --no-cache git
9
 
10
- # Clone repository (including your code)
11
- RUN git clone https://github.com/yummi184/Coinbase-Clone.git .
12
 
13
- # Install app dependencies
14
- COPY package*.json ./
15
- RUN npm install --production
16
-
17
- # Create data directory for JSON storage
18
- RUN mkdir -p /app/data
19
 
20
- # Expose Hugging Face's default port
21
  EXPOSE 7860
22
 
23
  # Start the application
24
- CMD ["node", "server.js"]
 
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"]