Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 8 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,26 +1,24 @@
FROM python:3.12-slim

WORKDIR /src
EXPOSE 8126

ENV SNAPSHOT_CI=1
ENV LOG_LEVEL=INFO
ENV SNAPSHOT_DIR=/snapshots
ENV VCR_CASSETTES_DIRECTORY=/vcr-cassettes

RUN apt update && apt install -y git curl
RUN apt update && \
apt install -y --no-install-recommends git curl runc containerd && \
rm -rf /var/lib/apt/lists/*

ADD vcr-cassettes ./vcr-cassettes
ENV VCR_CASSETTES_DIRECTORY=/vcr-cassettes
ADD vcr-cassettes /vcr-cassettes

RUN mkdir -p /src
WORKDIR /src
# Add only necessary files to speed up development builds
ADD README.md setup.py test_deps.txt ./
ADD ddapm_test_agent ./ddapm_test_agent
ADD .git ./.git
RUN pip install /src

# Cleanup
RUN apt remove -y git
RUN rm -rf /var/lib/apt/lists/* /root/.cache/pip /tmp/* /var/tmp/* /src
RUN pip install /src && \
rm -rf /root/.cache/pip

CMD ["ddapm-test-agent"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
fixes:
- |
Ensures ``runc`` and ``containerd`` are installed in the docker image.
Loading