Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
FROM php:8-cli-alpine AS base
FROM base AS console
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
WORKDIR /app
ENTRYPOINT ["/bin/sh"]
RUN apk add --no-cache \
git \
libpng-dev \
&& docker-php-ext-install \
gd
FROM console AS dev
COPY composer.* ./
RUN composer install
COPY . .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment