-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade to use default configuration
- Loading branch information
1 parent
2cd9e88
commit 7630fde
Showing
68 changed files
with
1,053 additions
and
2,194 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
/public/hot | ||
/public/storage | ||
/storage/*.key | ||
/vendor | ||
.env | ||
.env.backup | ||
.env.production | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,76 +1,15 @@ | ||
#syntax=docker/dockerfile:1.4 | ||
FROM php:8.3-apache | ||
|
||
# Versions | ||
FROM dunglas/frankenphp:1-alpine AS frankenphp_upstream | ||
|
||
# The different stages of this Dockerfile are meant to be built into separate images | ||
# https://docs.docker.com/develop/develop-images/multistage-build/#stop-at-a-specific-build-stage | ||
# https://docs.docker.com/compose/compose-file/#target | ||
|
||
|
||
# Base FrankenPHP image | ||
FROM frankenphp_upstream AS frankenphp_base | ||
|
||
WORKDIR /app | ||
|
||
# persistent / runtime deps | ||
# hadolint ignore=DL3018 | ||
RUN apk add --no-cache \ | ||
acl \ | ||
file \ | ||
gettext \ | ||
git \ | ||
; | ||
|
||
RUN set -eux; \ | ||
install-php-extensions \ | ||
@composer \ | ||
apcu \ | ||
intl \ | ||
opcache \ | ||
zip \ | ||
; | ||
|
||
# https://getcomposer.org/doc/03-cli.md#composer-allow-superuser | ||
ENV COMPOSER_ALLOW_SUPERUSER=1 | ||
|
||
###> recipes ### | ||
###< recipes ### | ||
|
||
COPY --link frankenphp/conf.d/app.ini $PHP_INI_DIR/conf.d/ | ||
COPY --link frankenphp/docker-entrypoint.sh /usr/local/bin/docker-entrypoint | ||
COPY --link frankenphp/Caddyfile /etc/caddy/Caddyfile | ||
RUN chmod 755 /usr/local/bin/docker-entrypoint | ||
|
||
ENTRYPOINT ["docker-entrypoint"] | ||
|
||
HEALTHCHECK --start-period=60s CMD curl -f http://localhost:2019/metrics || exit 1 | ||
|
||
CMD [ "frankenphp", "run", "--config", "/etc/caddy/Caddyfile" ] | ||
|
||
# Dev FrankenPHP image | ||
FROM frankenphp_base AS frankenphp_dev | ||
|
||
ENV APP_ENV=dev XDEBUG_MODE=off | ||
VOLUME /app/var/ | ||
|
||
RUN mv "$PHP_INI_DIR/php.ini-development" "$PHP_INI_DIR/php.ini" | ||
|
||
RUN set -eux; \ | ||
install-php-extensions \ | ||
xdebug \ | ||
; | ||
|
||
COPY --link frankenphp/conf.d/app.dev.ini $PHP_INI_DIR/conf.d/ | ||
WORKDIR /var/www/html | ||
|
||
CMD [ "frankenphp", "run", "--config", "/etc/caddy/Caddyfile", "--watch" ] | ||
RUN apt-get update -y && apt-get install -y openssl zip unzip git | ||
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer | ||
|
||
# Run on Divio Cloud | ||
FROM frankenphp_dev | ||
COPY . /var/www/html | ||
RUN composer install --prefer-dist | ||
|
||
ENV SERVER_NAME=:80 | ||
ENV STABILITY=stable | ||
ENV MERCURE_PUBLISHER_JWT_KEY=changeme | ||
ENV MERCURE_SUBSCRIBER_JWT_KEY=changeme | ||
EXPOSE 80 | ||
|
||
COPY . /app/ | ||
CMD ["php", "artisan", "serve", "--host", "0.0.0.0", "--port", "80"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.