getzero11 commited on
Commit
9711035
·
verified ·
1 Parent(s): 74dc214

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -13
Dockerfile CHANGED
@@ -1,23 +1,24 @@
1
  FROM node:20-slim
2
 
3
- # Install git (needed for some deps)
4
- RUN apt-get update && \
5
- apt-get install -y git && \
6
- rm -rf /var/lib/apt/lists/*
7
-
8
  WORKDIR /app
9
 
10
- # Copy package.json first for layer caching
 
 
 
11
  COPY package.json ./
 
12
 
13
- # Install dependencies
 
 
 
 
14
  RUN npm install
15
 
16
- # Copy the rest of the app
17
- COPY . .
 
18
 
19
- # Hugging Face Spaces port
20
  EXPOSE 7860
21
-
22
- # Start server
23
- CMD ["npm", "start"]
 
1
  FROM node:20-slim
2
 
 
 
 
 
 
3
  WORKDIR /app
4
 
5
+ # system deps
6
+ RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
7
+
8
+ # copy wrapper app
9
  COPY package.json ./
10
+ RUN npm install
11
 
12
+ # clone openclaw from source
13
+ RUN git clone https://github.com/openclaw/openclaw.git
14
+
15
+ # install openclaw deps
16
+ WORKDIR /app/openclaw
17
  RUN npm install
18
 
19
+ # back to app
20
+ WORKDIR /app
21
+ COPY server.js .
22
 
 
23
  EXPOSE 7860
24
+ CMD ["node", "server.js"]