diff --git a/Dockerfile b/Dockerfile index d6cc6d6..4e8bd0c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,8 +15,12 @@ RUN \ grep -qxF 'clear_env = no' /etc/php82/php-fpm.d/www.conf || echo 'clear_env = no' >> /etc/php82/php-fpm.d/www.conf && \ echo "env[PATH] = /usr/local/bin:/usr/bin:/bin" >> /etc/php82/php-fpm.conf - # install sqlite3 -RUN apk add --no-cache php82-sqlite3 +RUN apk --no-cache add \ + # Database + php82-sqlite3 \ + # Memcache + memcached \ + php82-pecl-memcached # healthchecks HEALTHCHECK --interval=60s --timeout=30s --start-period=180s --start-interval=10s --retries=5 \ diff --git a/root/etc/s6-overlay/s6-rc.d/svc-memcached/dependencies.d/init-services b/root/etc/s6-overlay/s6-rc.d/svc-memcached/dependencies.d/init-services new file mode 100644 index 0000000..e69de29 diff --git a/root/etc/s6-overlay/s6-rc.d/svc-memcached/run b/root/etc/s6-overlay/s6-rc.d/svc-memcached/run new file mode 100755 index 0000000..514c67a --- /dev/null +++ b/root/etc/s6-overlay/s6-rc.d/svc-memcached/run @@ -0,0 +1,4 @@ +#!/usr/bin/with-contenv bash +# shellcheck shell=bash + +exec memcached -u abc \ No newline at end of file diff --git a/root/etc/s6-overlay/s6-rc.d/svc-memcached/type b/root/etc/s6-overlay/s6-rc.d/svc-memcached/type new file mode 100644 index 0000000..1780f9f --- /dev/null +++ b/root/etc/s6-overlay/s6-rc.d/svc-memcached/type @@ -0,0 +1 @@ +longrun \ No newline at end of file diff --git a/root/etc/s6-overlay/s6-rc.d/user/contents.d/svc-memcached b/root/etc/s6-overlay/s6-rc.d/user/contents.d/svc-memcached new file mode 100644 index 0000000..e69de29