5 Commits

Author SHA1 Message Date
Michael Manganiello
0ca623329a Reduce Docker image size by only copying pip installed dependencies
Currently, the multi-stage Docker build makes the `release` stage
inherit from `dependencies`, which will include any files created by the
`pip install` process in the final image.

By using `pip install --user` to make dependencies be installed in
`~/.local`, we can only copy those files into the final image, reducing
the image size:

```
cloudflare-ddns-fix-applied     latest            68427bd7c88d   3 minutes ago   54.6MB
cloudflare-ddns-master          latest            2675320b651d   8 minutes ago   65.9MB
```

A good resource going deeper on how this approach works can be found at
https://pythonspeed.com/articles/multi-stage-docker-python/, solution 1.
2023-02-22 10:26:02 -03:00
timothymiller
5ac69b8274 Fixed IPv6 access inside Docker container 2020-08-13 18:26:43 -04:00
timothymiller
1e55144bf2 Added docker-compose build steps to README.md 2020-08-05 13:30:33 -04:00
timothymiller
de9cf97708 Docker + crontab backwards compatibility 2020-08-05 03:40:45 -04:00
timothymiller
df6b8a381a Minimal multi-stage docker build 2020-08-05 03:25:13 -04:00