Skip to content

Instantly share code, notes, and snippets.

View LouisBertin's full-sized avatar
🔥
ON FIRE

y99d2$5111 LouisBertin

🔥
ON FIRE
View GitHub Profile
@LouisBertin
LouisBertin / Dockerfile
Created May 4, 2021 14:51
WinterCMS - Dockerfile for Caprover
FROM php:7.4-apache
ENV APP_PATH=/var/www/html
WORKDIR $APP_PATH
# update, upgrade and install package
RUN apt update -y && apt upgrade -y \
&& apt-get install -y build-essential
# Php extensions
@LouisBertin
LouisBertin / Dockerfile - PHP and Apache
Last active December 5, 2023 02:26
Production ready Dockerfile for PHP and Apache
FROM php:7.4-apache
WORKDIR /app
# update & upgrade
RUN apt-get update -y && apt-get upgrade -y && apt-get install apt-utils -y
# Php extensions
COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/
RUN install-php-extensions intl bcmath gd pdo_mysql opcache uuid exif pcntl zip