forked from microsoft/agent-governance-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
52 lines (40 loc) · 1.46 KB
/
Dockerfile
File metadata and controls
52 lines (40 loc) · 1.46 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# syntax=docker/dockerfile:1.7
ARG PYTHON_VERSION=3.11
FROM python:${PYTHON_VERSION}-slim AS base
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
ENV DEBIAN_FRONTEND=noninteractive \
PIP_NO_CACHE_DIR=1 \
PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
NODE_MAJOR=22
WORKDIR /workspace
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
bash \
build-essential \
ca-certificates \
curl \
git \
&& curl -fsSL "https://deb.nodesource.com/setup_${NODE_MAJOR}.x" | bash - \
&& apt-get install -y --no-install-recommends nodejs \
&& python -m pip install --upgrade pip setuptools wheel \
&& rm -rf /var/lib/apt/lists/*
FROM base AS dev
COPY . /workspace
RUN python -m pip install --no-cache-dir \
-e "packages/agent-os[full,dev]" \
-e "packages/agent-mesh[agent-os,dev,server]" \
-e "packages/agent-hypervisor[api,dev,nexus]" \
-e "packages/agent-runtime" \
-e "packages/agent-sre[api,dev]" \
-e "packages/agent-compliance" \
-e "packages/agent-marketplace[cli,dev]" \
-e "packages/agent-lightning[agent-os,dev]" \
&& python -m pip install --no-cache-dir \
-r packages/agent-hypervisor/examples/dashboard/requirements.txt \
&& cd /workspace/packages/agent-mesh/sdks/typescript \
&& npm ci
ENTRYPOINT ["bash", "/workspace/scripts/docker/dev-entrypoint.sh"]
CMD ["sleep", "infinity"]
FROM dev AS test
CMD ["pytest"]