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 37a8e3a
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
Empty file.
3 changes: 3 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,3 @@
#!/usr/bin/env 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 37a8e3a

Please sign in to comment.