-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (22 loc) · 782 Bytes
/
Copy pathDockerfile
File metadata and controls
33 lines (22 loc) · 782 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM python:3.11-slim AS builder
LABEL org.opencontainers.image.source=https://github.com/doraemon-code/doraemon
LABEL org.opencontainers.image.description="Doraemon Code - AI Assistant powered by MCP"
LABEL org.opencontainers.image.licenses=MIT
WORKDIR /app
RUN apt-get update && apt-get install -y \
git \
curl \
&& rm -rf /var/lib/apt/lists/*
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
ENV PATH="/root/.local/bin:/root/.cargo/bin:${PATH}"
COPY pyproject.toml uv.lock ./
RUN uv pip install --system --no-cache-dir .
COPY src/ ./src/
RUN mkdir -p /app/.agent
RUN groupadd -r doraemon && useradd -r -g doraemon -m doraemon
RUN chown -R doraemon:doraemon /app
ENV PYTHONUNBUFFERED=1
ENV PYTHONPATH=/app
USER doraemon
ENTRYPOINT ["dora"]
CMD ["start"]