File tree Expand file tree Collapse file tree 2 files changed +12
-10
lines changed
Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Original file line number Diff line number Diff line change 11FROM python:3.12-slim
22
3+ WORKDIR /src
34EXPOSE 8126
45
56ENV SNAPSHOT_CI=1
67ENV LOG_LEVEL=INFO
78ENV SNAPSHOT_DIR=/snapshots
9+ ENV VCR_CASSETTES_DIRECTORY=/vcr-cassettes
810
9- RUN apt update && apt install -y git curl
11+ RUN apt update && \
12+ apt install -y --no-install-recommends git curl runc containerd && \
13+ rm -rf /var/lib/apt/lists/*
1014
11- ADD vcr-cassettes ./vcr-cassettes
12- ENV VCR_CASSETTES_DIRECTORY=/vcr-cassettes
15+ ADD vcr-cassettes /vcr-cassettes
1316
14- RUN mkdir -p /src
15- WORKDIR /src
1617# Add only necessary files to speed up development builds
1718ADD README.md setup.py test_deps.txt ./
1819ADD ddapm_test_agent ./ddapm_test_agent
1920ADD .git ./.git
20- RUN pip install /src
21-
22- # Cleanup
23- RUN apt remove -y git
24- RUN rm -rf /var/lib/apt/lists/* /root/.cache/pip /tmp/* /var/tmp/* /src
21+ RUN pip install /src && \
22+ rm -rf /root/.cache/pip
2523
2624CMD ["ddapm-test-agent" ]
Original file line number Diff line number Diff line change 1+ ---
2+ fixes :
3+ - |
4+ Ensures ``runc`` and ``containerd`` are installed in the docker image.
You can’t perform that action at this time.
0 commit comments