Initial commit

This commit is contained in:
Florian Meissner, DL1MRV
2023-07-11 23:07:20 +02:00
commit 2842c05f61
10 changed files with 265 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
# ***********************************************************************************************************************************
# * ___, _ ____ , __ *
# * / | o | | (| \ /|/ \ | *
# * | | ,_ ,_ __, | | | | _ _ __, ,_ _|_ ,_ _ | __/ __ __, ,_ __| *
# * | | / | / | | | |_/ | |/ _| ||/ |/ \_/ | / | | | | / | |/ | \/ \_/ | / | / | *
# * \__/\_/ |_/ |_/|_/ \/ \_/|_/|__/ (/\___/ |__/|__/ \_/|_/ |_/|_/ \_/|_/ |_/|__/ |(__/\__/ \_/|_/ |_/\_/|_/ *
# * /| *
# * \| *
# * *
# ***********************************************************************************************************************************
ARG PHP_VERSION
FROM php:${PHP_VERSION}
# Set timezone
RUN apk add --no-cache tzdata
ENV TZ=Etc/UTC
# Install PHP config
RUN mv /usr/local/etc/php/php.ini-development /usr/local/etc/php/php.ini
COPY etc/php /usr/local/etc/php/conf.d
# Install dependencies
RUN apk update && \
apk upgrade && \
apk add git && \
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer && \
rm -rf /var/cache/apk/*
# Install and execute own entrypoint script. This scrpit should hold all instructions that are not
# executed while the image is build (use RUN in this file therefore) but that are run when the
# container starts up. One major advanatge is that mounted volumes are already available when this
# script is executed.
COPY entrypoint.sh /entrypoint.sh
RUN ["chmod", "+x", "/entrypoint.sh"]
ENTRYPOINT ["/entrypoint.sh"]
+31
View File
@@ -0,0 +1,31 @@
#!/bin/sh
# ***********************************************************************************************************************************
# * ___, _ ____ , __ *
# * / | o | | (| \ /|/ \ | *
# * | | ,_ ,_ __, | | | | _ _ __, ,_ _|_ ,_ _ | __/ __ __, ,_ __| *
# * | | / | / | | | |_/ | |/ _| ||/ |/ \_/ | / | | | | / | |/ | \/ \_/ | / | / | *
# * \__/\_/ |_/ |_/|_/ \/ \_/|_/|__/ (/\___/ |__/|__/ \_/|_/ |_/|_/ \_/|_/ |_/|__/ |(__/\__/ \_/|_/ |_/\_/|_/ *
# * /| *
# * \| *
# * *
# ***********************************************************************************************************************************
# This file provides a set of instructions to run, when the container starts. It is anchored as the
# entrypoint in the Dockerfile.
# Florian Meissner, DL1MRV
# Install PHP composer dependencies. This is done every time, the container is (re-)started.
composer -d /var/www/html -n update
composer -d /var/www/html -n install --no-dev
# Generate translation files
# /generate_mo.sh
# Create log dir
mkdir -p -m 777 /var/www/html/logs
# Finally start PHP.
source /usr/local/bin/docker-php-entrypoint
php-fpm
+16
View File
@@ -0,0 +1,16 @@
; ***********************************************************************************************************************************
; * ___, _ ____ , __ *
; * / | o | | (| \ /|/ \ | *
; * | | ,_ ,_ __, | | | | _ _ __, ,_ _|_ ,_ _ | __/ __ __, ,_ __| *
; * | | / | / | | | |_/ | |/ _| ||/ |/ \_/ | / | | | | / | |/ | \/ \_/ | / | / | *
; * \__/\_/ |_/ |_/|_/ \/ \_/|_/|__/ (/\___/ |__/|__/ \_/|_/ |_/|_/ \_/|_/ |_/|__/ |(__/\__/ \_/|_/ |_/\_/|_/ *
; * /| *
; * \| *
; * *
; ***********************************************************************************************************************************
;
; Author: Florian Meissner, DL1MRV
memory_limit = 256M
session.cookie_lifetime = 1440
session.gc_maxlifetime = 1440
View File