Skip to content

Instantly share code, notes, and snippets.

@puzzle9
Last active September 1, 2024 18:40
Show Gist options
  • Save puzzle9/c57213455bea198f73809426be215b57 to your computer and use it in GitHub Desktop.
Save puzzle9/c57213455bea198f73809426be215b57 to your computer and use it in GitHub Desktop.
leantime frankenphp docker file
FROM dunglas/frankenphp:php8.3-alpine
MAINTAINER puzzle9
ARG LEAN_VERSION=3.2.0
RUN install-php-extensions pdo_mysql mbstring exif pcntl pdo bcmath opcache ldap zip gd
RUN cp $PHP_INI_DIR/php.ini-production $PHP_INI_DIR/php.ini
COPY <<"EOT" $PHP_INI_DIR/conf.d/custom.ini
variables_order = "EGPCS"
memory_limit = 1G
max_execution_time = 120
upload_max_filesize = 1024M
post_max_size = 1024M
opcache.enable = 1
opcache.validate_timestamps = 0
opcache.jit=1255
opcache.jit_buffer_size=128M
EOT
WORKDIR /var/www/html/
RUN curl -sL https://github.com/Leantime/leantime/releases/download/v${LEAN_VERSION}/Leantime-v${LEAN_VERSION}.tar.gz | tar --strip-components 1 -xzf -
COPY <<"EOT" ./Caddyfile
{
admin off
frankenphp
}
{$SERVER_NAME::9333} {
log
log_skip /dist*
root * public/
encode zstd br gzip
php_server
}
EOT
CMD ["/usr/local/bin/frankenphp", "run"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment