Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docker performance improvements and reduce image size (#1016)
* refactor(makefile): ♻️ remove repetitive command * chore(Dockerfile): Refactor Dockerfile to use multi-stage build - Change base image from python:3.11-slim to python:3.11-alpine in the builder stage - Use apk package manager instead of apt-get to install dependencies - Remove unnecessary sudo command - Use pip install --no-cache-dir instead of pip install - Add second stage in Dockerfile for final image - Copy dependencies and entrypoint script from builder stage to final stage Signed-off-by: Plamen Ivanov <paco.iwanow@gmail.com> * chore(entrypoint.sh): update shebang to use `/usr/bin/env sh` - add coding utf-8 declaration - use `find` command to patch permissions of generated files Signed-off-by: Plamen Ivanov <paco.iwanow@gmail.com> --------- Signed-off-by: Plamen Ivanov <paco.iwanow@gmail.com>
- Loading branch information