-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (21 loc) · 753 Bytes
/
Dockerfile
File metadata and controls
30 lines (21 loc) · 753 Bytes
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
29
30
ARG PHP_VERSION=8.2.2
ARG ALPINE_VERSION=3.17
FROM php:${PHP_VERSION}-fpm-alpine${ALPINE_VERSION}
# Setup ARG defaults
ARG WORKDIR=/var/www/html
ARG TZ=UTC
ENV WORKDIR=${WORKDIR}
ENV TZ=${TZ}
# Setup Timezone
RUN ln -snf /usr/share/zoneinfo/${TZ} /etc/localtime && echo ${TZ} > /etc/timezone
# Install deps
RUN apk --update add bash autoconf build-base wget curl git zip unzip jpeg-dev zlib-dev libpng-dev shadow libpq postgresql-dev
# Install PHP extensions
RUN docker-php-ext-install pdo_pgsql pdo_mysql exif pcntl bcmath gd opcache
# Install PECL extensions
RUN pecl install redis \
&& docker-php-ext-enable redis
# Get latest Composer
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
# Set Working Dir
WORKDIR ${WORKDIR}