update php and composer builds

This commit is contained in:
2021-01-02 20:36:35 -05:00
parent 2317dccba2
commit 240a2af2d5
5 changed files with 86 additions and 60 deletions

View File

@@ -9,16 +9,6 @@ WORKDIR /opt/project
# this is not needed in prod containers, but is useful for devs
ENV TERM=xterm
#RUN apt-get update && apt-get install -y software-properties-common python-software-properties \
# && LC_ALL=C.UTF-8 add-apt-repository -y ppa:ondrej/php \
# && apt-get update && apt-get install -y \
# curl nano sed libwww-perl htop ca-certificates \
# php7.2 php-cli php-fpm php-curl php-pear php-mcrypt php-zip php-mbstring php-xml \
# php-pgsql php-redis php-soap\
# git \
# \
# && apt-cache pkgnames | grep php7.3 \
# && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
&& php composer-setup.php --install-dir=/usr/local/bin --filename=composer \
&& composer global require franzl/studio\
@@ -26,3 +16,14 @@ RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
&& mkdir -p /home/user/.composer && chmod -R 777 /home/user/.composer
ENTRYPOINT ["/usr/local/bin/composer"]
RUN apt-get update && apt-get install -y \
# && LC_ALL=C.UTF-8 add-apt-repository -y ppa:ondrej/php \
# && apt-get update && apt-get install -y \
# curl nano sed libwww-perl htop ca-certificates \
# php7.2 php-cli php-fpm php-curl php-pear php-mcrypt php-zip php-mbstring php-xml \
# php-pgsql php-redis php-soap\
unzip \
# \
# && apt-cache pkgnames | grep php7.3 \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \