-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (22 loc) · 1.34 KB
/
Dockerfile
File metadata and controls
28 lines (22 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM php:8.3-fpm
# ── System dependencies + PHP extensions (single layer) ──────────────────────
RUN apt-get update && apt-get install -y --no-install-recommends \
libsqlite3-dev \
libonig-dev \
libicu-dev \
libfreetype6-dev \
libpng-dev \
&& rm -rf /var/lib/apt/lists/* \
&& docker-php-ext-configure gd --with-freetype \
&& docker-php-ext-install pdo_sqlite mbstring intl gd \
&& docker-php-ext-enable fileinfo || true
# ── Composer ──────────────────────────────────────────────────────────────────
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
# ── PHP ini (development overrides) ──────────────────────────────────────────
COPY docker/php.ini $PHP_INI_DIR/conf.d/cms.ini
# ── Entrypoint ────────────────────────────────────────────────────────────────
COPY docker/entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
WORKDIR /var/www/cms
ENTRYPOINT ["/entrypoint.sh"]
CMD ["php-fpm"]