Spaces:
Paused
Paused
Update Dockerfile
Browse files- 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 |
-
#
|
| 7 |
-
RUN
|
|
|
|
| 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
|
| 15 |
-
chmod -R 755 /app
|
| 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
|