From 7c05f7fcd9d56e2228c57b42ba49c34d2e89e50d Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Tue, 24 Jul 2018 14:23:02 -0700 Subject: [PATCH] Replace a few more errant ADD vs COPY --- nuxeo/content.md | 2 +- open-liberty/content.md | 4 ++-- tomee/content.md | 2 +- websphere-liberty/content.md | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/nuxeo/content.md b/nuxeo/content.md index d442eea22..9fa551b52 100644 --- a/nuxeo/content.md +++ b/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: diff --git a/open-liberty/content.md b/open-liberty/content.md index 46c5cba9b..fd629f1e9 100644 --- a/open-liberty/content.md +++ b/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 diff --git a/tomee/content.md b/tomee/content.md index a0079d786..5278be758 100644 --- a/tomee/content.md +++ b/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 / /usr/local/tomee/webapps/ + COPY / /usr/local/tomee/webapps/ diff --git a/websphere-liberty/content.md b/websphere-liberty/content.md index 6177c64bc..9bdd666bd 100644 --- a/websphere-liberty/content.md +++ b/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