Optimize Dockerfile to use `apk add` with `--no-cache` Using the `apk add` command with the `--no-cache` parameter for package installation will prevent the package index from being cached and reduce the image size.
| @@ -4,7 +4,7 @@ FROM node:lts-alpine3.19 | ||
| 4 | 4 | ARG APP_HOME=/home/node/app |
| 5 | 5 | |
| 6 | 6 | # Install system dependencies |
| 7 | 7 | RUN apk add --no-cache gcompat tini git |
| 8 | 8 | |
| 9 | 9 | # Create app directory |
| 10 | 10 | WORKDIR ${APP_HOME} |