The backend image is over 1 GB because dependencies and build tools are included in the final image. Implement a multi-stage Dockerfile to reduce final size.