File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -780,6 +780,14 @@ CMD python manage.py runserver
780
780
(this is actually one of the things that `activate` does, under the hood).
781
781
782
782
<3> We copy our requirements file in, just like the src folder.
783
+ // CSANAD: It's fine for now, but I would definitely put the requirements under
784
+ // /tmp and then `rm` it after `pip install`. Also, using a non-privileged
785
+ // user is important, something like:
786
+ // `adduser --no-create-home --disabled-password todoapp`
787
+ // and then setting the user in the Dockerfile with `USER todoapp`.
788
+ // But we can cover this in a later chapter (the next one looks like a good fit,
789
+ // since it's related to the app being production ready).
790
+
783
791
784
792
<4> Now we install our dependencies with `pip`,
785
793
pointing it at our _requirements.txt_.
You can’t perform that action at this time.
0 commit comments