File size: 689 Bytes
86d0fe1
 
6c3e322
86d0fe1
 
6c3e322
 
 
86d0fe1
 
 
 
6c3e322
 
 
86d0fe1
 
6c3e322
 
86d0fe1
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM node:18-alpine

# Install git and any other required system dependencies
RUN apk add --no-cache git

# Create app directory and set proper permissions first
RUN mkdir -p /app && \
    chown -R node:node /app

# Set working directory
WORKDIR /app

# Clone repo as root (temporarily)
RUN git clone https://github.com/EMMYHENZ-TECH/Wallet-Connect ./

# Create data directory with correct permissions
RUN mkdir -p /app/data && \
    chown -R node:node /app && \
    chmod -R 755 /app

# Install dependencies
RUN npm install

# Switch to non-root user (important for security)
USER node

# Environment variables
ENV PORT=7860
ENV NODE_ENV=production

EXPOSE 7860

CMD ["node", "server.js"]