Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
Nguyen Hung Manh
Dockerized Wordpress on Raspberry Pi
Commits
a05bf0e2
Commit
a05bf0e2
authored
Dec 07, 2020
by
Nguyen Hung Manh
Browse files
Docker image now also includes imagick for image editing.
parent
4c4b097f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
docker-compose.yml
docker-compose.yml
+1
-1
php/Dockerfile
php/Dockerfile
+12
-3
No files found.
docker-compose.yml
View file @
a05bf0e2
...
...
@@ -19,7 +19,7 @@ services:
-
wordpress
php
:
image
:
hunnguye/php7.4-rc-alpine3.1-fpm-mysqli-armv7:7.4
image
:
hunnguye/php7.4-rc-alpine3.1-fpm-mysqli-armv7:7.4
-imagick
#build: php
links
:
# make sure you change your wp-config
...
...
php/Dockerfile
View file @
a05bf0e2
FROM
arm32v7/php:7.4-rc-fpm-alpine
#php7.4-rc-alpine3.1-fpm:latest
RUN
docker-php-ext-install mysqli
&&
\
docker-php-ext-install bcmath
&&
\
docker-php-ext-install exif
RUN
apk
--no-cache
add shadow
&&
\
usermod
-u
55 xfs
&&
\
groupmod
-g
55 xfs
&&
\
usermod
-u
33 www-data
&&
\
groupmod
-g
33 www-data
RUN
apk
--no-cache
add shadow
&&
\
usermod
-u
55 xfs
&&
\
groupmod
-g
55 xfs
&&
\
usermod
-u
33 www-data
&&
\
groupmod
-g
33 www-data
# repository for easy php extension installation
ADD
https://raw.githubusercontent.com/mlocati/docker-php-extension-installer/master/install-php-extensions /usr/local/bin/
RUN
chmod
+x /usr/local/bin/install-php-extensions
&&
sync
&&
\
install-php-extensions imagick zip mysqli bcmath exif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment