Skip to content

Commit

Permalink
Publish dond-shim-bin image
Browse files Browse the repository at this point in the history
Useful if you don't want to install from GitHub.
  • Loading branch information
felipecrs committed Sep 6, 2023
1 parent 39bf96c commit 90185d4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
ARG DOCKER_VERSION="latest"


FROM scratch AS dond-shim-bin

COPY dond /


FROM docker:${DOCKER_VERSION} AS dond-shim

# Install deps
Expand All @@ -7,7 +14,7 @@ RUN apk add --no-cache bash
# Install dond-shim
ARG DOCKER_PATH="/usr/local/bin/docker"
RUN mv -f "${DOCKER_PATH}" "${DOCKER_PATH}.orig"
COPY dond "${DOCKER_PATH}"
COPY --from=dond-shim-bin /dond "${DOCKER_PATH}"

FROM dond-shim AS test

Expand Down

0 comments on commit 90185d4

Please sign in to comment.