henztech commited on
Commit
6c3e322
·
verified ·
1 Parent(s): 86d0fe1

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -5
Dockerfile CHANGED
@@ -1,18 +1,22 @@
1
  FROM node:18-alpine
2
 
3
- # Install git
4
  RUN apk add --no-cache git
5
 
6
- # Clone repo
7
- RUN git clone https://github.com/EMMYHENZ-TECH/Wallet-Connect /app
 
8
 
9
  # Set working directory
10
  WORKDIR /app
11
 
 
 
 
12
  # Create data directory with correct permissions
13
  RUN mkdir -p /app/data && \
14
- chown -R node:node /app/data && \
15
- chmod -R 755 /app/data
16
 
17
  # Install dependencies
18
  RUN npm install
 
1
  FROM node:18-alpine
2
 
3
+ # Install git and any other required system dependencies
4
  RUN apk add --no-cache git
5
 
6
+ # Create app directory and set proper permissions first
7
+ RUN mkdir -p /app && \
8
+ chown -R node:node /app
9
 
10
  # Set working directory
11
  WORKDIR /app
12
 
13
+ # Clone repo as root (temporarily)
14
+ RUN git clone https://github.com/EMMYHENZ-TECH/Wallet-Connect ./
15
+
16
  # Create data directory with correct permissions
17
  RUN mkdir -p /app/data && \
18
+ chown -R node:node /app && \
19
+ chmod -R 755 /app
20
 
21
  # Install dependencies
22
  RUN npm install