Skip to content

Instantly share code, notes, and snippets.

View weidmaster's full-sized avatar
💻
Unemployed - No active contracts

Eduardo Weidman Barijan weidmaster

💻
Unemployed - No active contracts
View GitHub Profile
@weidmaster
weidmaster / docker-compose.yml
Created October 22, 2024 14:22
docker-compose for PHP 5 with mySQL 8
networks:
app-network:
services:
webserver:
container_name: PHP-webserver
build:
context: .
dockerfile: Dockerfile
volumes:
- .:/var/www/html
@weidmaster
weidmaster / Dockerfile
Created October 22, 2024 14:20
Dockerfile for PHP 5 with GD and mysqli support
FROM php:5.4.39-apache
RUN mkdir -p "$PHP_INI_DIR/conf.d"
RUN echo "deb http://archive.debian.org/debian/ jessie main" > /etc/apt/sources.list \
&& echo "deb http://archive.debian.org/debian-security jessie/updates main" >> /etc/apt/sources.list
RUN apt-get update -y && apt-get install -y --allow-unauthenticated zlib1g-dev libjpeg62-turbo libpng-dev libjpeg-dev
RUN docker-php-ext-install mysqli pdo_mysql \
&& docker-php-ext-configure gd \
--with-png-dir=/usr/lib/ \
--with-jpeg-dir=/usr/lib/ \
--with-gd \