Skip to content

Instantly share code, notes, and snippets.

@fjahn
Created October 5, 2021 11:53
Show Gist options
  • Save fjahn/7ea6bb9f40994b4c0b54c6b6594687f5 to your computer and use it in GitHub Desktop.
Save fjahn/7ea6bb9f40994b4c0b54c6b6594687f5 to your computer and use it in GitHub Desktop.
Composer Dockerfile
FROM composer:2
FROM php:8-cli
COPY --from=composer /usr/bin/composer /usr/bin/composer
VOLUME /app
WORKDIR /app
RUN apt update && apt install -y \
git \
unzip libzip-dev \
&& rm -rf /var/lib/apt/lists/*
RUN docker-php-ext-install zip
ENTRYPOINT [ "composer" ]
CMD [ "install" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment