teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

1

Add expression

2020/09/18 17:28

投稿

y_shinoda
y_shinoda

スコア3272

answer CHANGED
@@ -26,4 +26,10 @@
26
26
  && chmod +x /usr/bin/wait-for-it
27
27
  ```
28
28
 
29
- `wget` でなく `curl` や `git` でも構いません
29
+ `wget` でなく `curl` や `git` でも構いません
30
+ Docker イメージのレイヤーが増えますが、`ADD` を使うと上記のコマンドなしでも設定できます:
31
+
32
+ ```docker
33
+ ADD https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.sh /usr/bin/wait-for-it
34
+ RUN chmod +x /usr/bin/wait-for-it
35
+ ```