This repository was archived by the owner on Apr 22, 2026. It is now read-only.
Commit d5a73ab
authored
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>1 parent 164730a commit d5a73ab
2 files changed
Lines changed: 20 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
2 | 3 | | |
3 | | - | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | | - | |
| 10 | + | |
12 | 11 | | |
13 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
2 | 4 | | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
| 10 | + | |
0 commit comments