-
-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
1,013 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,6 +30,7 @@ env: | |
- PHP=7.0 | ||
- PHP=7.1 | ||
- PHP=7.2 | ||
- PHP=7.3 | ||
|
||
|
||
### | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
# Auto-generated via Ansible: edit build/ansible/DOCKERFILES/Dockerfile-base.j2 instead. | ||
FROM devilbox/php-fpm-7.3 | ||
MAINTAINER "cytopia" <[email protected]> | ||
|
||
|
||
### | ||
### Labels | ||
### | ||
LABEL \ | ||
name="cytopia's PHP-FPM 7.3 Image" \ | ||
image="devilbox/php-fpm" \ | ||
tag="7.3-base" \ | ||
vendor="devilbox" \ | ||
license="MIT" | ||
|
||
|
||
### | ||
### Envs | ||
### | ||
ENV MY_USER="devilbox" \ | ||
MY_GROUP="devilbox" \ | ||
MY_UID="1000" \ | ||
MY_GID="1000" | ||
|
||
|
||
### | ||
### User/Group | ||
### | ||
RUN set -x \ | ||
&& groupadd -g ${MY_GID} -r ${MY_GROUP} \ | ||
&& useradd -u ${MY_UID} -m -s /bin/bash -g ${MY_GROUP} ${MY_USER} | ||
|
||
|
||
### | ||
### Upgrade (install ps) | ||
### | ||
RUN set -x \ | ||
&& apt-get update \ | ||
&& apt-get upgrade -y \ | ||
&& apt-get install --no-install-recommends --no-install-suggests -y procps \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
|
||
### | ||
### Configure | ||
### | ||
RUN set -x \ | ||
&& rm -rf /usr/local/etc/php-fpm.d \ | ||
&& mkdir -p /usr/local/etc/php-fpm.d \ | ||
&& mkdir -p /var/lib/php/session \ | ||
&& mkdir -p /var/lib/php/wsdlcache \ | ||
&& chown -R devilbox:devilbox /var/lib/php/session \ | ||
&& chown -R devilbox:devilbox /var/lib/php/wsdlcache | ||
|
||
|
||
### | ||
### Copy files | ||
### | ||
COPY ./data/docker-entrypoint.sh /docker-entrypoint.sh | ||
COPY ./data/docker-entrypoint.d /docker-entrypoint.d | ||
COPY ./data/php-fpm.conf /usr/local/etc/php-fpm.conf | ||
COPY ./data/php-fpm.d /usr/local/etc/php-fpm.d | ||
|
||
|
||
### | ||
### Verify | ||
### | ||
RUN set -x \ | ||
&& php -v | grep -oE 'PHP\s[.0-9]+' | grep -oE '[.0-9]+' | grep '^7.3' \ | ||
&& /usr/local/sbin/php-fpm --test \ | ||
&& PHP_ERROR="$( php -v 2>&1 1>/dev/null )" \ | ||
&& if [ -n "${PHP_ERROR}" ]; then echo "${PHP_ERROR}"; false; fi | ||
|
||
|
||
### | ||
### Ports | ||
### | ||
EXPOSE 9000 | ||
|
||
|
||
### | ||
### Entrypoint | ||
### | ||
ENTRYPOINT ["/docker-entrypoint.sh"] |
Oops, something went wrong.