Просмотр исходного кода

Replace a few more errant ADD vs COPY

Tianon Gravi 7 лет назад
Родитель
Сommit
7c05f7fcd9
4 измененных файлов с 6 добавлено и 6 удалено
  1. 1 1
      nuxeo/content.md
  2. 2 2
      open-liberty/content.md
  3. 1 1
      tomee/content.md
  4. 2 2
      websphere-liberty/content.md

+ 1 - 1
nuxeo/content.md

@@ -128,7 +128,7 @@ If you would like to do additional setup in an image derived from this one, you
 
 ```dockerfile
 FROM %%IMAGE%%:7.10
-ADD nuxeo.conf /docker-entrypoint-initnuxeo.d/nuxeo.conf
+COPY nuxeo.conf /docker-entrypoint-initnuxeo.d/nuxeo.conf
 ```
 
 If you need a root account to run some installation steps in your `Dockerfile`, then you need to put those steps between two `USER` command as the image is run with the user `1000` (nuxeo). For instance:

+ 2 - 2
open-liberty/content.md

@@ -68,7 +68,7 @@ The images are designed to support a number of different usage patterns. The fol
 
 	```dockerfile
 	FROM %%IMAGE%%:webProfile8
-	ADD Sample1.war /config/dropins/
+	COPY Sample1.war /config/dropins/
 	```
 
 	This can then be built and run as follows:
@@ -84,7 +84,7 @@ The images are designed to support a number of different usage patterns. The fol
 
 	```dockerfile
 	FROM %%IMAGE%%:webProfile8
-	ADD DefaultServletEngine /config
+	COPY DefaultServletEngine /config
 	```
 
 	```console

+ 1 - 1
tomee/content.md

@@ -58,4 +58,4 @@ The configuration files are available in `/usr/local/tomee/conf/`. By default, n
 
 You can also use this image as base image for deploying your war application. To do it you need to create a Dockerfile based on Tomee Docker image and add the war file in `webapps` directory:
 
-	ADD <locationofapplication>/<warfile> /usr/local/tomee/webapps/<warfile>
+	COPY <locationofapplication>/<warfile> /usr/local/tomee/webapps/<warfile>

+ 2 - 2
websphere-liberty/content.md

@@ -54,7 +54,7 @@ The images are designed to support a number of different usage patterns. The fol
 
 	```dockerfile
 	FROM %%IMAGE%%:webProfile8
-	ADD Sample1.war /config/dropins/
+	COPY Sample1.war /config/dropins/
 	```
 
 	This can then be built and run as follows:
@@ -70,7 +70,7 @@ The images are designed to support a number of different usage patterns. The fol
 
 	```dockerfile
 	FROM %%IMAGE%%:webProfile8
-	ADD DefaultServletEngine /config
+	COPY DefaultServletEngine /config
 	```
 
 	```console