mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-21 19:55:35 +00:00
fix: docker support
This commit is contained in:
parent
83aa283b3d
commit
2def3bbc8e
24
Dockerfile
24
Dockerfile
@ -1,4 +1,4 @@
|
||||
#syntax=docker/dockerfile:1.4
|
||||
# syntax=docker/dockerfile:1.4
|
||||
|
||||
# Versions
|
||||
FROM dunglas/frankenphp:1-php8.3 AS frankenphp_upstream
|
||||
@ -7,7 +7,6 @@ FROM dunglas/frankenphp:1-php8.3 AS frankenphp_upstream
|
||||
# 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
|
||||
|
||||
@ -30,12 +29,15 @@ RUN set -eux; \
|
||||
apcu \
|
||||
intl \
|
||||
opcache \
|
||||
zip \
|
||||
;
|
||||
zip
|
||||
|
||||
RUN set -eux; \
|
||||
curl -fsSL https://deb.nodesource.com/setup_22.x | bash -; \
|
||||
apt-get install -y nodejs; \
|
||||
npm install -g yarn
|
||||
|
||||
# https://getcomposer.org/doc/03-cli.md#composer-allow-superuser
|
||||
ENV COMPOSER_ALLOW_SUPERUSER=1
|
||||
|
||||
ENV PHP_INI_SCAN_DIR=":$PHP_INI_DIR/app.conf.d"
|
||||
|
||||
###> recipes ###
|
||||
@ -49,7 +51,6 @@ COPY --link --chmod=755 frankenphp/docker-entrypoint.sh /usr/local/bin/docker-en
|
||||
COPY --link frankenphp/Caddyfile /etc/caddy/Caddyfile
|
||||
|
||||
ENTRYPOINT ["docker-entrypoint"]
|
||||
|
||||
HEALTHCHECK --start-period=60s CMD curl -f http://localhost:2019/metrics || exit 1
|
||||
CMD [ "frankenphp", "run", "--config", "/etc/caddy/Caddyfile" ]
|
||||
|
||||
@ -62,8 +63,7 @@ RUN mv "$PHP_INI_DIR/php.ini-development" "$PHP_INI_DIR/php.ini"
|
||||
|
||||
RUN set -eux; \
|
||||
install-php-extensions \
|
||||
xdebug \
|
||||
;
|
||||
xdebug
|
||||
|
||||
COPY --link frankenphp/conf.d/20-app.dev.ini $PHP_INI_DIR/app.conf.d/
|
||||
|
||||
@ -94,4 +94,10 @@ RUN set -eux; \
|
||||
composer dump-autoload --classmap-authoritative --no-dev; \
|
||||
composer dump-env prod; \
|
||||
composer run-script --no-dev post-install-cmd; \
|
||||
chmod +x bin/console; sync; \
|
||||
chmod +x bin/console; \
|
||||
sync
|
||||
|
||||
RUN php bin/console assets:install
|
||||
RUN yarn install
|
||||
RUN yarn run build
|
||||
RUN yarn run ttag:po2json
|
||||
|
||||
@ -12,7 +12,7 @@
|
||||
|
||||
<meta property="og:type" content="website"/>
|
||||
<meta property="og:title" content="Domain Watchdog"/>
|
||||
<meta property="og:image" content="{{ asset('images/banner.png') }}">
|
||||
<meta property="og:image" content="/images/banner.png">
|
||||
<meta property="og:description"
|
||||
content="A standalone app that collects open access information about domain names, helping users track the history and changes associated with domain names"/>
|
||||
<meta property="og:site_name" content="Domain Watchdog"/>
|
||||
@ -21,11 +21,11 @@
|
||||
<meta property="twitter:title" content="Domain Watchdog"/>
|
||||
<meta property="twitter:description"
|
||||
content="A standalone app that collects open access information about domain names, helping users track the history and changes associated with domain names"/>
|
||||
<meta property="twitter:image" content="{{ asset('images/banner.png') }}"/>
|
||||
<meta property="twitter:image" content="/images/banner.png"/>
|
||||
|
||||
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<link rel="manifest" href="{{ asset('manifest.json') }}"/>
|
||||
<link rel="manifest" href="/manifest.json"/>
|
||||
<title>Domain Watchdog</title>
|
||||
{{ encore_entry_link_tags('app') }}
|
||||
</head>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user