This file contains 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/sh | |
# Based on BMitch's answer from: | |
# https://stackoverflow.com/questions/38946683/how-to-test-dockerignore-file | |
# 1. .dockerignoreをチェックしたいプロジェクトに移動し、このファイルを配置します。 | |
# 2. 実行結果を保存するファイルを指定して、これを実行します。例:'./dockerignore-test.sh file_list.txt' | |
# 3. 指定したファイルにコンテナ内のファイル一覧が保存されます。 | |
if [ "$1" = "" ]; then |