Optimize Dockerfile apk usage to reduce image size (#162)
Eliminate `apk update` command and explicitly use `apk upgrade` with `--no-cache` to minimize temp file residue.
This commit is contained in:
parent
9222cef5a9
commit
0b82345ee9
@ -5,7 +5,7 @@ FROM php:8.0.5-fpm-alpine
|
||||
WORKDIR /var/www/html
|
||||
|
||||
# Update packages
|
||||
RUN apk update && apk upgrade
|
||||
RUN apk upgrade --no-cache
|
||||
|
||||
# Install SQLite3 and its dependencies
|
||||
RUN apk add --no-cache sqlite-dev \
|
||||
|
||||
Loading…
Reference in New Issue
Block a user