Update the Dockerfile to implement a multi-stage build process.
Introduce a dedicated FFmpeg stage and separate development, build,
and production stages to optimize image size and improve build
efficiency. Add necessary dependencies and configure the
environment for better performance. Update the .dockerignore
to exclude sensitive files and unnecessary directories.