Three ways to copy and share data to a Docker container:
-
Providing data on build time: Docker ADD vs COPY
-
Providing data on run time: How to copy files to or from a Docker container
-
Sharing data via volumes: Using volumes in Docker Compose
Prevent copying unnecessary files: .dockerignore files to build better Docker images