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
FROM alpine:3.16 | |
#lista apk necessarias. Obs.: a extensao PCRE no php8.1 vem junto do core. | |
RUN mkdir /app | |
WORKDIR /app | |
RUN apk add vim curl openssl sqlite php81 php81-openssl php81-intl php81-openssl php81-sqlite3 php81-pear php81-tokenizer php81-phpdbg php81-pdo_mysql php81-common php81-xsl php81 php81-fpm php81-mysqlnd php81-snmp php81-doc php81-fileinfo php81-mbstring php81-embed php81-xmlreader php81-pdo_sqlite php81-exif php81-session php81-gd php81-json php81-xml php81-iconv php81-curl php81-phar php81-imap php81-pdo_dblib php81-pgsql php81-zip php81-ctype php81-bcmath php81-calendar php81-dom php81-sockets php81-soap php81-pdo php81-bz2 php81-mysqli php81-simplexml php81-xmlwriter | |
RUN ln -s /usr/bin/php81 /usr/bin/php | |
#instalando composer... entre no site e confirme se esta na versao mais recente | |
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" | |
RUN php -r "if (hash_file('sha384', 'composer-setup.php') === '55ce33d7678c5a611085589f1f3ddf8b3c52d662cd01d4ba75c0ee0459970c2200a |
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
<?php | |
echo "Iniciando reducao de tamanho, aguarde...\n"; | |
# ========================================================================# | |
# | |
# Author: Rajani .B improved by Guilherme. | |
# Version: 1.0 | |
# Date: 07-July-2021 | |
# Purpose: Resizes and saves image | |
# Requires : Requires PHP5+, GD library. | |
# Usage Example: |