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.
This commit is contained in:
Peter Dave Hello 2025-02-23 13:58:17 +08:00 committed by Your Name
parent 7249d4470a
commit 2faaabbf5f

View File

@ -4,7 +4,7 @@ FROM node:lts-alpine3.19
ARG APP_HOME=/home/node/app
# Install system dependencies
RUN apk add gcompat tini git
RUN apk add --no-cache gcompat tini git
# Create app directory
WORKDIR ${APP_HOME}