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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -7
Dockerfile CHANGED
@@ -1,23 +1,23 @@
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"]
 
1
  FROM node:18
2
 
3
+ # Update package lists, install git, and install pnpm globally
4
  RUN apt-get update && apt-get install -y git && npm install -g pnpm
5
 
6
  WORKDIR /app
7
 
8
+ # Ensure we pull the exact target repository URL
9
+ RUN git clone https://github.com /app
10
 
11
+ # Run installation, core engine compilation, and UI production build steps
12
  RUN pnpm install
13
  RUN pnpm build
14
  RUN pnpm ui:build
15
 
16
+ # Open open directory access rules to fit Hugging Face's sandbox permissions
17
  RUN chmod -R 777 /app
18
 
19
+ # Set target port routing to standard Hugging Face traffic hooks
20
  EXPOSE 7860
21
 
22
+ # Launch the gateway application service directly on port 7860
23
  CMD ["pnpm", "clawdbot", "gateway", "--port", "7860"]