File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
docs/install/containers/images Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -321,6 +321,26 @@ And start a container.
321321docker run -p 8080:8080 myproject:latest start
322322` ` `
323323
324+ # ## Changing default values of environment variables
325+
326+ All the environment variables documented above are supported in your
327+ derived container's Dockerfile. You can override the default values
328+ of variables as follows :
329+
330+ ` ` ` Dockerfile
331+ # Add environment variables before any CMD or ENTRYPOINT stanzas,
332+ # and after any FROM, RUN and COPY stanzas.
333+ ENV ZODB_CACHE_SIZE="120000"
334+ ` ` `
335+
336+ Of course, you can always override these variables upon container
337+ start by using the Docker `docker run` argument `-e VAR=value`.
338+
339+ Be aware that some variables are not intended to be used in production.
340+ Check the respective variable documentation above to determine whether
341+ you should use it, or use a different method to get the desired result
342+ in production.
343+
324344# ## Adding `zope.conf` configuration fragments
325345
326346In the directory containing your `Dockerfile`, create a folder `etc/zope.conf.d`.
You can’t perform that action at this time.
0 commit comments