mirror of
https://github.com/clearlinux/dockerfiles.git
synced 2026-05-14 10:53:43 +00:00
Set user/group to httpd to make it compatible with clearlinux php-fpm and nginx. Signed-off-by: Qi Zheng <qi.zheng@intel.com>
20 lines
639 B
Docker
20 lines
639 B
Docker
FROM clearlinux/php-fpm
|
|
MAINTAINER sophia.gong@intel.com
|
|
|
|
VOLUME /var/www/html
|
|
|
|
ENV WORDPRESS_VERSION 5.2.2
|
|
ENV WORDPRESS_SHA1 3605bcbe9ea48d714efa59b0eb2d251657e7d5b0
|
|
|
|
RUN set -ex; \
|
|
curl -o wordpress.tar.gz -fSL "https://wordpress.org/wordpress-${WORDPRESS_VERSION}.tar.gz"; \
|
|
echo "$WORDPRESS_SHA1 *wordpress.tar.gz" | sha1sum -c -; \
|
|
# upstream tarballs include ./wordpress/ so this gives us /usr/src/wordpress
|
|
tar -xzf wordpress.tar.gz -C /usr/src/; \
|
|
rm wordpress.tar.gz; \
|
|
chown -R httpd:httpd /usr/src/wordpress
|
|
|
|
COPY docker-entrypoint.sh /usr/local/bin/
|
|
ENTRYPOINT ["docker-entrypoint.sh"]
|
|
CMD ["php-fpm"]
|