Skip to content

Commit

Permalink
Add only necessary files to image
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 aa50eb6
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 aa50eb6

Please sign in to comment.