From 232037d3ad41c5bc81ba85b88f774fe715f6cff8 Mon Sep 17 00:00:00 2001 From: Deon George Date: Tue, 9 Jan 2024 20:18:50 +1100 Subject: [PATCH] Fix memcached pid dir and ownership --- Dockerfile | 2 ++ docker/init | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6fa8846..2e75fbf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,12 +20,14 @@ RUN curl -SLo /usr/local/bin/wait-for-it https://github.com/vishnubob/wait-for-i # Memcache RUN apk add --no-cache memcached libmemcached pkgconfig zlib-dev memcached-dev libmemcached-dev && \ pecl_install igbinary msgpack memcached && \ + mkdir /run/memcached && chown memcached:memcached /run/memcached && \ apk del --no-cache pkgconfig zlib-dev memcached-dev libmemcached-dev # Enable ZIP BZIP2 RUN apk add --no-cache libzip libzip-dev zlib-dev && \ docker-php-ext-install -j$(nproc) zip bz2 && \ apk del --no-cache libzip-dev zlib-dev + # Add zstd RUN pecl_install zstd diff --git a/docker/init b/docker/init index d41787b..9a4408f 100755 --- a/docker/init +++ b/docker/init @@ -37,7 +37,7 @@ function nginx_start() { # General Setup if [ -x /usr/bin/memcached -a "${MEMCACHED_START}" == "TRUE" ]; then echo "* Starting MEMCACHED..." - /usr/bin/memcached -d -P /var/run/memcached.pid -u memcached + /usr/bin/memcached -d -P /run/memcached/memcached.pid -u memcached fi # Laravel Specific