Commit a29b8319 authored by Philippe Pepiot's avatar Philippe Pepiot
Browse files

Add "best practices" in README

parent 5ed2f489eedc
...@@ -194,3 +194,24 @@ To run cubicweb looping tasks, you will also have to start the ``scheduler``:: ...@@ -194,3 +194,24 @@ To run cubicweb looping tasks, you will also have to start the ``scheduler``::
# run in background # run in background
docker run -d --restart=always --name myapp-scheduler myapp cubicweb-ctl scheduler instance docker run -d --restart=always --name myapp-scheduler myapp cubicweb-ctl scheduler instance
Best practices
--------------
In case of source tree builds, add a ``.dockerignore`` to your project to avoid
copying useless files inside the docker image. For example::
.*
*.egg-info
**/__pycache__
Dockerfile
Jenkinsfile
Makefile
tox.ini
test
debian
Always pull the base image before running the build. Base images are rebuild in
case of debian security update or new pypi releases.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment