Skip to content

Commit 6dfe9d2

Browse files
authored
Create Dockerfile
1 parent 49e462d commit 6dfe9d2

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Dockerfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#https://github.com/bitnami/bitnami-docker-wordpress-nginx/blob/master/5/debian-10/Dockerfile
2+
FROM bitnami/wordpress-nginx:latest
3+
4+
ENV WORDPRESS_TABLE_PREFIX=bn_ \
5+
WORDPRESS_EXTRA_WP_CONFIG_CONTENT="define('WP_CACHE', true);"
6+
7+
# leave the USER 1001 mode, add package, grand right to 1001 and restore the usage of this user
8+
USER root
9+
10+
# now in root user mode, nginx daemon will need to access the phpfpm stuff from root
11+
RUN usermod -aG root daemon
12+
13+
# add memcached package
14+
RUN export DEBIAN_FRONTEND=noninteractive && \
15+
apt-get update && \
16+
apt-get install -y memcached php-memcached && \
17+
apt-get autoremove && \
18+
service memcached start

0 commit comments

Comments
 (0)