mirror of
https://github.com/antonkomarev/github-profile-views-counter.git
synced 2026-03-31 06:24:11 -04:00
38 lines
787 B
Docker
38 lines
787 B
Docker
# ----------------------
|
|
# The FPM base container
|
|
# ----------------------
|
|
FROM php:7.4-fpm-alpine AS dev
|
|
|
|
RUN apk add --no-cache --virtual .build-deps \
|
|
$PHPIZE_DEPS \
|
|
freetype-dev \
|
|
libpng-dev \
|
|
postgresql-dev
|
|
|
|
# Cleanup apk cache and temp files
|
|
RUN rm -rf /var/cache/apk/* /tmp/*
|
|
|
|
# Configure php extensions
|
|
RUN docker-php-ext-configure gd --with-freetype
|
|
|
|
# Install php extensions
|
|
RUN docker-php-ext-install \
|
|
gd \
|
|
pdo \
|
|
pdo_pgsql
|
|
|
|
# Cleanup apk cache and temp files
|
|
RUN rm -rf /var/cache/apk/* /tmp/*
|
|
|
|
# ----------------------
|
|
# Composer install step
|
|
# ----------------------
|
|
|
|
# Get latest Composer
|
|
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
|
|
|
|
# ----------------------
|
|
# The FPM production container
|
|
# ----------------------
|
|
FROM dev
|