Skip to content

Commit f99330c

Browse files
committed
⬆️ README and Dockerfile - fixed version
1 parent f7a518c commit f99330c

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Dockerfile

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2"
5050
ENV PHP_CPPFLAGS="$PHP_CFLAGS"
5151
ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie"
5252

53-
ENV GPG_KEYS 1A4E8B7277C42E53DBA9C7B9BCAA30EA9C0D5763 6E4F6AB321FDC07F2C332E3AC2BF0BC433CFC8B3
53+
ENV GPG_KEYS 0BD78B5F97500D450838F95DFE857D9A90D90EC1 6E4F6AB321FDC07F2C332E3AC2BF0BC433CFC8B3
5454

55-
ENV PHP_VERSION 7.0.27
56-
ENV PHP_URL="https://secure.php.net/get/php-7.0.27.tar.xz/from/this/mirror" PHP_ASC_URL="https://secure.php.net/get/php-7.0.27.tar.xz.asc/from/this/mirror"
57-
ENV PHP_SHA256="4b2bc823e806dbf7b62fe0b92b0d14b0c6e03f88c3fc5d96278416c54ce11f6c" PHP_MD5=""
55+
ENV PHP_VERSION 5.6.33
56+
ENV PHP_URL="https://secure.php.net/get/php-5.6.33.tar.xz/from/this/mirror" PHP_ASC_URL="https://secure.php.net/get/php-5.6.33.tar.xz.asc/from/this/mirror"
57+
ENV PHP_SHA256="9004995fdf55f111cd9020e8b8aff975df3d8d4191776c601a46988c375f3553" PHP_MD5=""
5858

5959
RUN set -xe; \
6060
\
@@ -257,9 +257,6 @@ ADD files/php.ini /usr/local/etc/php/
257257
ADD files/run.sh /
258258
RUN chmod +x /run.sh
259259

260-
#RUN sed -i "s/nginx:x:100:101:nginx:\/var\/lib\/nginx:\/sbin\/nologin/nginx:x:100:101:nginx:\/DATA:\/bin\/bash/g" /etc/passwd && \
261-
# sed -i "s/nginx:x:100:101:nginx:\/var\/lib\/nginx:\/sbin\/nologin/nginx:x:100:101:nginx:\/DATA:\/bin\/bash/g" /etc/passwd-
262-
263260
RUN curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar && chmod +x wp-cli.phar && mv wp-cli.phar /usr/bin/wp-cli && chown nginx:nginx /usr/bin/wp-cli
264261

265262
EXPOSE 80

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,29 @@ Container with:
77
* Debian Jessie (default time zone `Europe/Riga`)
88
* `nginx` 1.10.3
99
* PHP-FPM 5.6.33
10+
* WP-CLI 1.5.0
1011
* `git`
1112

1213
Based on following containers:
1314

1415
* [php](https://hub.docker.com/_/php/)
1516
* [celerative/nginx-php-fpm](https://hub.docker.com/r/celerative/nginx-php-fpm/)
17+
* [celerative/wordpress](https://hub.docker.com/r/celerative/wordpress/)
1618

1719
## Usage
1820

1921
To get it running just enter:
2022

2123
`docker run -d --name your_container v /sites/yourdomain.com:/DATA -p 80:80 -t digiblink/jessie-nginx-php5-fpm`
2224

23-
After that you can use BusyBox bash, to log into container:
25+
After that you can use BusyBox bash, to log into container and use [WP-CLI](http://wp-cli.org), to install [WordPress](https://wordpress.org):
2426

2527
`docker exec -ti your_container bash`
2628

2729
After logging in issue following commands:
2830

2931
```
3032
su nginx
33+
cd /DATA
3134
wp-cli
3235
```

0 commit comments

Comments
 (0)