Skip to content

Instantly share code, notes, and snippets.

@opdavies
Created September 29, 2021 22:53
Show Gist options
  • Save opdavies/980f923b9d508b6759ba1c324c80a8d4 to your computer and use it in GitHub Desktop.
Save opdavies/980f923b9d508b6759ba1c324c80a8d4 to your computer and use it in GitHub Desktop.
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