Last active
October 17, 2024 15:32
-
-
Save jkirira/837327ec09a01f2a6f6c283941066c24 to your computer and use it in GitHub Desktop.
Docker Ubuntu 22.04 Php* Composer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ARG COMPOSER_VERSION=2.2 | |
#ARG COMPOSER_VERSION=latest | |
FROM composer:${COMPOSER_VERSION} AS composer | |
FROM ubuntu:22.04 | |
ARG DEBIAN_FRONTEND=noninteractive | |
ARG PHP_VERSION=7.1 | |
RUN apt clean \ | |
&& apt update -y \ | |
&& apt install -y software-properties-common \ | |
&& add-apt-repository ppa:ondrej/php \ | |
&& apt update -y \ | |
&& apt search php \ | |
&& apt-get install -y \ | |
php${PHP_VERSION} php${PHP_VERSION}-fpm php${PHP_VERSION}-bcmath php${PHP_VERSION}-imap php${PHP_VERSION}-xml php${PHP_VERSION}-curl php${PHP_VERSION}-mysql php${PHP_VERSION}-mbstring php${PHP_VERSION}-gd php${PHP_VERSION}-zip \ | |
# php${PHP_VERSION} php-fpm php-bcmath php-imap php-xml php-curl php-mysql php-mbstring php-gd php-zip \ | |
# mysql-server \ | |
curl nginx git nano vim zip unzip git | |
COPY --from=composer /usr/bin/composer /usr/bin/composer | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment