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.

2faaabbf5f6d4e5af82b3a508786877d6c16c878

Peter Dave Hello <hsu@peterdavehello.org>

1 files changed, +1 -1Ignore whitespace
Dockerfile+1 -1
@@ -4,7 +4,7 @@ FROM node:lts-alpine3.19
4ARG APP_HOME=/home/node/app4ARG APP_HOME=/home/node/app
55
6# Install system dependencies6# Install system dependencies
7RUN apk add gcompat tini git7RUN apk add --no-cache gcompat tini git
88
9# Create app directory9# Create app directory
10WORKDIR ${APP_HOME}10WORKDIR ${APP_HOME}