Skip to content

Commit 39bd348

Browse files
committed
Build with memcache
1 parent 88fafd7 commit 39bd348

File tree

5 files changed

+13
-2
lines changed

5 files changed

+13
-2
lines changed

Dockerfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,14 @@ RUN \
1515
grep -qxF 'clear_env = no' /etc/php82/php-fpm.d/www.conf || echo 'clear_env = no' >> /etc/php82/php-fpm.d/www.conf && \
1616
echo "env[PATH] = /usr/local/bin:/usr/bin:/bin" >> /etc/php82/php-fpm.conf
1717

18-
# install sqlite3
19-
RUN apk add --no-cache php82-sqlite3
18+
RUN apk update && \
19+
apk upgrade && \
20+
apk --no-cache add \
21+
# Database
22+
php82-sqlite3 \
23+
# Memcache
24+
memcached \
25+
php83-pecl-memcached
2026

2127
# healthchecks
2228
HEALTHCHECK --interval=60s --timeout=30s --start-period=180s --start-interval=10s --retries=5 \

root/etc/s6-overlay/s6-rc.d/svc-memcached/dependencies.d/init-services

Whitespace-only changes.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/with-contenv bash
2+
# shellcheck shell=bash
3+
4+
exec memcached -u abc
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
longrun

root/etc/s6-overlay/s6-rc.d/user/contents.d/svc-memcached

Whitespace-only changes.

0 commit comments

Comments
 (0)