Skip to content

Instantly share code, notes, and snippets.

Avatar
🔥
ON FIRE

y99d2$5111 LouisBertin

🔥
ON FIRE
View GitHub Profile
@LouisBertin
LouisBertin / Dockerfile
Created May 4, 2021
WinterCMS - Dockerfile for Caprover
View Dockerfile
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 May 4, 2021
Production ready Dockerfile for PHP and Apache
View Dockerfile - 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