Skip to content

Commit

Permalink
Update Dockerfile to use build cache for apt package installation
Browse files Browse the repository at this point in the history
  • Loading branch information
catatsuy committed Aug 11, 2024
1 parent c788ab1 commit fb186cf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions webapp/php/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# syntax=docker/dockerfile:1
FROM php:8.3-fpm-bookworm

RUN apt update && apt install -y \
unzip libmemcached-dev zlib1g-dev libssl-dev
RUN \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
--mount=type=cache,target=/var/cache/apt,sharing=locked \
apt-get update -qq && apt-get install -y unzip libmemcached-dev zlib1g-dev libssl-dev

RUN docker-php-ext-install pdo pdo_mysql

Expand Down

0 comments on commit fb186cf

Please sign in to comment.