Skip to content

Commit

Permalink
Build with memcache
Browse files Browse the repository at this point in the history
  • Loading branch information
austinwbest committed Nov 18, 2024
1 parent 88fafd7 commit 12ffcd3
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 2 deletions.
13 changes: 11 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,17 @@ 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 echo '@community http://dl-cdn.alpinelinux.org/alpine/v3.18/community/' >> /etc/apk/repositories && \
apk update && \
apk upgrade && \
apk --no-cache add \
# Database
php82-sqlite3 \
# Memcache
memcached \
php83-pecl-memcached \
php82-pecl-memcache@community \
php82-pecl-memcached@community

# healthchecks
HEALTHCHECK --interval=60s --timeout=30s --start-period=180s --start-interval=10s --retries=5 \
Expand Down
Empty file.
4 changes: 4 additions & 0 deletions root/etc/s6-overlay/s6-rc.d/svc-memcached/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/with-contenv bash
# shellcheck shell=bash

exec memcached -u abc
1 change: 1 addition & 0 deletions root/etc/s6-overlay/s6-rc.d/svc-memcached/type
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
longrun
Empty file.

0 comments on commit 12ffcd3

Please sign in to comment.