Spaces:
Runtime error
Runtime error
Create Dockerfile
Browse files- Dockerfile +19 -0
Dockerfile
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM node:22-bookworm
|
| 2 |
+
|
| 3 |
+
# ๅฎ่ฃๅฟ
่ฆๅทฅๅ
ท
|
| 4 |
+
RUN apt-get update && apt-get install -y git curl && \
|
| 5 |
+
curl -fsSL https://bun.sh/install | bash
|
| 6 |
+
ENV PATH="/root/.bun/bin:${PATH}"
|
| 7 |
+
|
| 8 |
+
WORKDIR /app
|
| 9 |
+
|
| 10 |
+
# Clone OpenClaw
|
| 11 |
+
RUN git clone https://github.com/openclaw/openclaw.git . && \
|
| 12 |
+
corepack enable && \
|
| 13 |
+
pnpm install
|
| 14 |
+
|
| 15 |
+
# ๆด้ฒ Port 7860 (HF ่ฆๅฎ)
|
| 16 |
+
EXPOSE 7860
|
| 17 |
+
|
| 18 |
+
# ๅๅๆไปค
|
| 19 |
+
CMD ["sh", "-c", "pnpm run gateway"]
|