Skip to content

Commit

Permalink
Optimize Dockerfile apk usage to reduce image size (#162)
Browse files Browse the repository at this point in the history
Eliminate `apk update` command and explicitly use `apk upgrade` with
`--no-cache` to minimize temp file residue.
  • Loading branch information
PeterDaveHello authored Feb 27, 2024
1 parent 9222cef commit 0b82345
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 0b82345

Please sign in to comment.