-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (18 loc) · 531 Bytes
/
Dockerfile
File metadata and controls
29 lines (18 loc) · 531 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
ARG DOCKER_VERSION="latest"
FROM scratch AS dond-shim-bin
COPY dond /
FROM docker:${DOCKER_VERSION} AS dond-shim
# Install deps
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 --from=dond-shim-bin /dond "${DOCKER_PATH}"
FROM dond-shim AS test
# Create fixtures
RUN mkdir -p /test && \
echo test | tee /test/only-inside-container
# Cleanup entrypoint to make execution faster
ENTRYPOINT []
# Set default stage
FROM dond-shim