mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-15 09:24:52 +03:00
Update docs/developing-locally-docker.rst
Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
This commit is contained in:
parent
3d3d4df4cc
commit
9702673acd
|
@ -150,7 +150,12 @@ Add 3rd party python packages
|
||||||
To install a new 3rd party python package, you cannot use ``pip install <package_name>``, that would only add the package to the container. The container is ephemeral, so that new library won't be persisted if you run another container. Instead, you should modify the Docker image:
|
To install a new 3rd party python package, you cannot use ``pip install <package_name>``, that would only add the package to the container. The container is ephemeral, so that new library won't be persisted if you run another container. Instead, you should modify the Docker image:
|
||||||
You have to modify the relevant requirement file: base, local or production by adding: ::
|
You have to modify the relevant requirement file: base, local or production by adding: ::
|
||||||
|
|
||||||
<package_name> == <package_version>
|
<package_name>==<package_version>
|
||||||
|
|
||||||
|
To get this change picked up, you'll need to rebuild the image(s) and restart the running container: ::
|
||||||
|
|
||||||
|
docker-compose -f local.yml build
|
||||||
|
docker-compose -f local.yml up
|
||||||
|
|
||||||
Debugging
|
Debugging
|
||||||
~~~~~~~~~
|
~~~~~~~~~
|
||||||
|
|
Loading…
Reference in New Issue
Block a user