Skip to content

Instantly share code, notes, and snippets.

@AndreKR
Created August 5, 2022 02:51
Show Gist options
  • Save AndreKR/bbf7f5688dcae0df0a672eccc342b8f4 to your computer and use it in GitHub Desktop.
Save AndreKR/bbf7f5688dcae0df0a672eccc342b8f4 to your computer and use it in GitHub Desktop.
Dockerfile COPY cheat sheet
# 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