Skip to content

Commit 2f8efde

Browse files
authored
Turns out RUN needs to run before the COPY.
The `apt-get` upgrade recommendation per the documentation should always run before adding any other code.
1 parent 4e97ec8 commit 2f8efde

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/install/containers/images/backend.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -326,8 +326,8 @@ docker run -p 8080:8080 myproject:latest start
326326
In the directory containing your `Dockerfile`, create a folder `etc/zope.conf.d`.
327327
Add your `zope.conf` configuration fragments there.
328328

329-
Now add the following to your `Dockerfile`, before any `RUN`, `CMD` or `ENTRYPOINT`
330-
stanzas it may have, and after the `FROM` stanza:
329+
Now add the following to your `Dockerfile`, before any `CMD` or `ENTRYPOINT`
330+
stanzas it may have, and after the `FROM` and any `RUN` stanzas:
331331

332332
```Dockerfile
333333
COPY /etc/zope.conf.d/*.conf /app/etc/zope.conf.d/
@@ -342,8 +342,8 @@ In the directory containing your `Dockerfile`, create a folder `etc/package-incl
342342
Add your ZCML configuration fragments (named `*-meta.zcml`, `*-configure.zcml`,
343343
`*-overrides.zcml`) as files in that folder.
344344

345-
Now add the following to your `Dockerfile`, before any `RUN`, `CMD` or `ENTRYPOINT`
346-
stanzas it may have, and after the `FROM` stanza:
345+
Now add the following to your `Dockerfile`, before any `CMD` or `ENTRYPOINT`
346+
stanzas it may have, and after the `FROM` and any `RUN` stanzas:
347347

348348
```Dockerfile
349349
COPY /etc/package-includes/*.zcml /app/etc/package-includes/

0 commit comments

Comments
 (0)