回答編集履歴

1

Add expression

2020/09/01 04:36

投稿

y_shinoda
y_shinoda

スコア3272

test CHANGED
@@ -6,9 +6,29 @@
6
6
 
7
7
  ../project
8
8
 
9
+ +---docker-compose.yml
10
+
9
11
  +---Dockerfile
10
12
 
11
13
  +---hello_world.py
14
+
15
+ ```
16
+
17
+
18
+
19
+ docker-compose.yml:
20
+
21
+
22
+
23
+ ```yaml
24
+
25
+ version: "3.8"
26
+
27
+ services:
28
+
29
+ ubuntu:
30
+
31
+ build: .
12
32
 
13
33
  ```
14
34
 
@@ -81,3 +101,15 @@
81
101
 
82
102
 
83
103
  参考: [Dockerfile reference | Docker Documentation](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact)
104
+
105
+
106
+
107
+ docker-compose.yml 側で設定することもできます
108
+
109
+ (Dockerfile でも設定している場合はこちらの設定で上書きされます):
110
+
111
+
112
+
113
+ - [Compose file version 3 reference | Docker Documentation](https://docs.docker.com/compose/compose-file/#command)
114
+
115
+ - [Compose file version 3 reference | Docker Documentation](https://docs.docker.com/compose/compose-file/#entrypoint)