| |
| FROM golang:1.23-alpine AS builder |
| |
| ENV GOTOOLCHAIN=auto |
| RUN apk add --no-cache git make gcc musl-dev |
| WORKDIR /app |
| RUN git clone https://github.com/sipeed/picoclaw.git . |
| RUN make build |
|
|
| |
| FROM python:3.11-slim |
| RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/* |
|
|
| |
| WORKDIR /app |
|
|
| |
| COPY --from=builder /app/build/picoclaw /app/picoclaw |
| RUN chmod +x /app/picoclaw |
|
|
| |
| RUN mkdir -p /root/.picoclaw/workspace /root/.picoclaw/storage |
|
|
| |
| RUN pip install flask |
|
|
| |
| COPY config.json /root/.picoclaw/config.json |
| COPY app.py . |
|
|
| EXPOSE 7860 |
| CMD ["python", "app.py"] |