Commit 91bfc3
2025-07-06 21:29:21 Tebby Dog: Random Code Warning2-code/docker-shortcuts.md .. | |
@@ 1,5 1,23 @@ | |
# Docker-Shortcuts | |
+ | # Mandatory warning |
+ | Rule #1 of Coding Club: NEVER run code you don't understand. |
+ | Rule #2 of Coding Club: SERIOUSLY, go back and read Rule #1. |
+ | |
+ | ```python |
+ | def trust_random_code_from_the_internet(): |
+ | print("✨ Found a magic snippet online that promises to solve all your problems!") |
+ | print("Step 1: Copy it.") |
+ | print("Step 2: Paste it.") |
+ | print("Step 3: Watch as your toaster mines Bitcoin and emails your secrets to '[email protected]' 😱") |
+ | |
+ | print("\nLet's not do that. 💡") |
+ | print("Instead, read the code. Understand it. Test it in a safe environment.") |
+ | print("Trust, but verify. Or even better — distrust by default!") |
+ | |
+ | trust_random_code_from_the_internet() |
+ | ``` |
+ | |
# Description | |
This script automates the process of building and pushing a Docker image to DockerHub, while incrementally tracking the version number. It uses the directory name as the default local image name, but allows for customization through command-line arguments. |