Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
docker-wordpress
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
docker-wordpress
Commits
3033041f
Commit
3033041f
authored
Jan 19, 2018
by
Fabio Montefuscolo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Dockerfile
parent
78f9820d
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
17 deletions
+11
-17
Dockerfile
Dockerfile
+7
-17
root/entrypoint.sh
root/entrypoint.sh
+0
-0
root/opt/wp-cli/.gitignore
root/opt/wp-cli/.gitignore
+1
-0
root/usr/local/bin/wp
root/usr/local/bin/wp
+3
-0
root/var/www/html/.htaccess
root/var/www/html/.htaccess
+0
-0
root/var/www/html/wp-config.php
root/var/www/html/wp-config.php
+0
-0
No files found.
Dockerfile
View file @
3033041f
FROM
hacklab/php:7-apache
MAINTAINER
Hacklab <contato@hacklab.com.br>
COPY
root/ /
RUN
a2enmod headers
\
&&
docker-php-ext-install pdo_mysql sockets
\
&&
printf
"yes"
| pecl
install
memcached
\
&&
printf
"no
\n
"
| pecl
install
redis
\
&&
echo
'extension=redis.so'
>
/usr/local/etc/php/conf.d/pecl-redis.ini
\
&&
echo
'extension=memcached.so'
>
/usr/local/etc/php/conf.d/pecl-memcached.ini
\
&&
curl
-s
-o
wp-cli.phar
'https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar'
\
&&
chmod
+x wp-cli.phar
\
&&
mv
wp-cli.phar /usr/local/bin/wp
\
&&
wp core download
--path
=
/var/www/html/
--version
=
4.9.1
--locale
=
pt_BR
--allow-root
\
&&
curl
-s
-o
/opt/wp-cli/wp-cli.phar
'https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar'
\
&&
wp core download
--path
=
/var/www/html/
--version
=
4.9.1
--locale
=
pt_BR
\
&&
{
\
echo
"file_uploads = On"
;
\
echo
"upload_max_filesize = 2048M"
;
\
echo
"post_max_size = 2048M"
;
\
echo
"max_file_uploads = 20"
;
\
}
>
/usr/local/etc/php/conf.d/wordpress-uploads.ini
COPY
docker-entrypoint.sh /entrypoint.sh
COPY
htaccess /var/www/html/.htaccess
COPY
wp-config.php /var/www/html/wp-config.php
RUN
chown
-R
www-data: /var/www/html/
\
}
>
/usr/local/etc/php/conf.d/wordpress-uploads.ini
\
&&
chown
-R
www-data: /var/www/html/
\
&&
mkdir
-p
/docker-entrypoint-extra
\
&&
mkdir
-p
/var/www/html/wp-config.d
\
&&
echo
"alias wp='/usr/local/bin/wp --allow-root'"
>>
/root/.bashrc
ENV
PAGER /bin/cat
&&
mkdir
-p
/var/www/html/wp-config.d
EXPOSE
80 443
ENTRYPOINT
["/entrypoint.sh"]
...
...
docker-
entrypoint.sh
→
root/
entrypoint.sh
View file @
3033041f
File moved
root/opt/wp-cli/.gitignore
0 → 100644
View file @
3033041f
*
root/usr/local/bin/wp
0 → 100755
View file @
3033041f
#!/bin/bash
PAGER
=
cat
/usr/local/bin/php /opt/wp-cli/wp-cli.phar
--allow-root
$@
htaccess
→
root/var/www/html/.
htaccess
View file @
3033041f
File moved
wp-config.php
→
root/var/www/html/
wp-config.php
View file @
3033041f
File moved
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