Closed reddit-tennis closed 11 months ago
In case anyone wants to test:
docker build -t wenger --no-cache .
docker run -d wenger
Reduces build time from 10+ minutes to 20 seconds ~
[+] Building 647.1s (9/9) FINISHED docker:desktop-linux
So That was a lie.
Use python:3.10 base image to enable Pillow and Panda to build faster.
Build requirements first so we leverage cached layers for faster development.
Add a
.dockerignore
file so that we exclude files not relevant to the build process.Reduces build time from 10+ minutes to 20 seconds ~