EdgeAIG commited on
Commit
a8acfc9
·
verified ·
1 Parent(s): a7a9bd5

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +21 -3
Dockerfile CHANGED
@@ -1,5 +1,23 @@
1
  FROM node:18
 
 
 
 
2
  WORKDIR /app
3
- RUN npm install -g @harleycoops/clawdbot
4
- EXPOSE 3000
5
- CMD ["clawdbot", "start", "--port", "3000"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  FROM node:18
2
+
3
+ # Install git and global pnpm needed by the repository
4
+ RUN apt-get update && apt-get install -y git && npm install -g pnpm
5
+
6
  WORKDIR /app
7
+
8
+ # Clone the official repository directly
9
+ RUN git clone https://github.com .
10
+
11
+ # Install dependencies, build the core engine, and compile the Web UI
12
+ RUN pnpm install
13
+ RUN pnpm build
14
+ RUN pnpm ui:build
15
+
16
+ # Set permissions for Hugging Face's container environment
17
+ RUN chmod -R 777 /app
18
+
19
+ # Expose Hugging Face's default web interface port
20
+ EXPOSE 7860
21
+
22
+ # Start the gateway server on port 7860
23
+ CMD ["pnpm", "clawdbot", "gateway", "--port", "7860"]