Skip to content

Commit

Permalink
Merge pull request Backblaze#968 from reef-technologies/docker_image_…
Browse files Browse the repository at this point in the history
…tweaks

remove b2.tar from final docker image
  • Loading branch information
mjurbanski-reef authored Nov 26, 2023
2 parents 9eb3c86 + 578791d commit 69da126
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ LABEL build-date-iso8601="${build_date}"

WORKDIR /root

COPY ${tar_path}/${tar_name} .
RUN ["pip", "install", "${tar_name}[full]"]
RUN --mount=type=bind,source=${tar_path}/${tar_name},target=/tmp/${tar_name} \
pip install --no-cache-dir /tmp/${tar_name}[full]

ENTRYPOINT ["b2"]
CMD ["--help"]
1 change: 1 addition & 0 deletions changelog.d/+docker_optimization.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Do not include build cache in official `b2` docker image.

0 comments on commit 69da126

Please sign in to comment.