Skip to content

Commit

Permalink
Add only necessary files to image (#173)
Browse files Browse the repository at this point in the history
This will help speed up testing as the image will largely be cached when
non-critical files are touched.
  • Loading branch information
Kyle-Verhoog committed Feb 16, 2024
1 parent f1dc164 commit 1fb5dc9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ RUN apt update && apt install -y git curl

RUN mkdir -p /src
WORKDIR /src
COPY . /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
Expand Down

0 comments on commit 1fb5dc9

Please sign in to comment.