Created
August 5, 2022 02:51
-
-
Save AndreKR/bbf7f5688dcae0df0a672eccc342b8f4 to your computer and use it in GitHub Desktop.
Dockerfile COPY cheat sheet
This file contains hidden or 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
# Copies the file into the directory (both are equivalent): | |
COPY some_file /some_directory/ | |
COPY some_file /some_directory/some_file | |
# Copies both files into the directory: | |
COPY some_file another_file /some_directory/ | |
# Copies the contents of the directory (but not the directory itself) into the other directory: | |
COPY some_directory /other_directory/ | |
# Invalid: | |
COPY some_file another_file /something | |
COPY some_directory /something |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment