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
#!/bin/bash | |
# | |
# Extracts the source code of any Docker tag! | |
# Inspired by Sambhav Jain's post on DEV: https://dev.to/sambhav2612/reverse-engineering-a-docker-image-i8c | |
# Simply pass: | |
# 1. The desired Docker image tag you want to get the source code for | |
# 2. The target folder to put the source code in | |
# | |
# Example usage: | |
# ./export-source-from-docker-tag.sh gcr.io/google-samples/gb-frontend:v4 docker-source |