Created
April 2, 2020 03:42
-
-
Save kylemanna/977d01362b9184381516ab95e336b162 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Proof of Concept | |
# | |
# Compose a docker image of an upstream images so that binaries packages in one | |
# image can be incorporated into another. | |
# | |
# TODO This copies, would be nice if there was a way to attach an image to a | |
# container like `docker run --volumes-from` does for containers. | |
# These FROMs used as a way to distribute files via an image | |
FROM busybox:1.31.1 AS bb | |
FROM ubuntu:20.04 AS ub20 | |
# This is the base for the next steps | |
FROM alpine:3 | |
# Copy the files form the busybox image to demonstrate it works | |
COPY --from=bb /bin/busybox /opt/magick/busybox | |
COPY --from=ub20 / /opt/magick/ubuntu | |
# By default list the directory we are demonstrating | |
CMD ls -lR /opt/magick |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment