From 6c6e7152432a0940d635b792bc7bbb8f311ced2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrei=20Ioni=C8=9B=C4=83?= Date: Wed, 14 Aug 2024 13:01:40 +0100 Subject: [PATCH] add alias --- 8.2/Dockerfile | 7 +++++++ common/sh/aliases.sh | 1 + 2 files changed, 8 insertions(+) create mode 100644 common/sh/aliases.sh diff --git a/8.2/Dockerfile b/8.2/Dockerfile index a8a850f..94c2fbe 100644 --- a/8.2/Dockerfile +++ b/8.2/Dockerfile @@ -41,6 +41,7 @@ RUN set -ex; \ ENTRYPOINT ["/init"] RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" +COPY common/sh /etc/profile.d COPY common/s6-rc.d /etc/s6-overlay/s6-rc.d COPY common/nginx/nginx.conf /etc/nginx/nginx.conf COPY 8.2/php.ini /usr/local/etc/php/conf.d/zz-custom.ini @@ -69,6 +70,12 @@ ENV WORKER_TIMEOUT=600 # Number of times to attempt a job before logging it failed ENV WORKER_TRIES=3 +# determines what the container should do if one of the service scripts fails +# 0: Continue silently even if a script has failed. +# 1: Continue but warn with an annoying error message.ext script +# 2: Stop the container. +ENV S6_BEHAVIOUR_IF_STAGE2_FAILS 2 + ENV SENTRY_SAMPLE_RATE=0 EXPOSE 80 diff --git a/common/sh/aliases.sh b/common/sh/aliases.sh new file mode 100644 index 0000000..5f51674 --- /dev/null +++ b/common/sh/aliases.sh @@ -0,0 +1 @@ +alias artisan="php /var/www/artisan"