Replace a few more errant ADD vs COPY
This commit is contained in:
parent
f9bd939a71
commit
7c05f7fcd9
|
|
@ -128,7 +128,7 @@ If you would like to do additional setup in an image derived from this one, you
|
||||||
|
|
||||||
```dockerfile
|
```dockerfile
|
||||||
FROM %%IMAGE%%:7.10
|
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:
|
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:
|
||||||
|
|
|
||||||
|
|
@ -68,7 +68,7 @@ The images are designed to support a number of different usage patterns. The fol
|
||||||
|
|
||||||
```dockerfile
|
```dockerfile
|
||||||
FROM %%IMAGE%%:webProfile8
|
FROM %%IMAGE%%:webProfile8
|
||||||
ADD Sample1.war /config/dropins/
|
COPY Sample1.war /config/dropins/
|
||||||
```
|
```
|
||||||
|
|
||||||
This can then be built and run as follows:
|
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
|
```dockerfile
|
||||||
FROM %%IMAGE%%:webProfile8
|
FROM %%IMAGE%%:webProfile8
|
||||||
ADD DefaultServletEngine /config
|
COPY DefaultServletEngine /config
|
||||||
```
|
```
|
||||||
|
|
||||||
```console
|
```console
|
||||||
|
|
|
||||||
|
|
@ -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:
|
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>
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ The images are designed to support a number of different usage patterns. The fol
|
||||||
|
|
||||||
```dockerfile
|
```dockerfile
|
||||||
FROM %%IMAGE%%:webProfile8
|
FROM %%IMAGE%%:webProfile8
|
||||||
ADD Sample1.war /config/dropins/
|
COPY Sample1.war /config/dropins/
|
||||||
```
|
```
|
||||||
|
|
||||||
This can then be built and run as follows:
|
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
|
```dockerfile
|
||||||
FROM %%IMAGE%%:webProfile8
|
FROM %%IMAGE%%:webProfile8
|
||||||
ADD DefaultServletEngine /config
|
COPY DefaultServletEngine /config
|
||||||
```
|
```
|
||||||
|
|
||||||
```console
|
```console
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue