-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from webparking/php8
Added support for PHP8
- Loading branch information
Showing
9 changed files
with
91 additions
and
58 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 |
---|---|---|
|
@@ -6,3 +6,4 @@ composer.lock | |
Thumbs.db | ||
/phpunit.xml | ||
*.iml | ||
.phpunit.result.cache |
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
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 |
---|---|---|
@@ -1,8 +1,12 @@ | ||
version: '3.7' | ||
|
||
services: | ||
# Docker Image: https://hub.docker.com/r/vinelab/nginx-php | ||
app: | ||
image: vinelab/nginx-php:7.4 | ||
workspace: | ||
tty: true | ||
build: | ||
context: resources/docker/workspace | ||
args: | ||
PUID: "${PUID:-1000}" | ||
PGID: "${PGID:-1000}" | ||
volumes: | ||
- ./:/code:cached | ||
- ./:/var/www/html |
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,29 @@ | ||
FROM php:8.0-cli-alpine | ||
|
||
ARG PUID=1000 | ||
ARG PGID=1000 | ||
|
||
RUN apk add --no-cache --virtual .build-deps \ | ||
# for extensions | ||
$PHPIZE_DEPS \ | ||
&& \ | ||
apk add --no-cache \ | ||
bash \ | ||
# for composer | ||
unzip \ | ||
&& \ | ||
docker-php-ext-install \ | ||
# for php-amqplib | ||
bcmath \ | ||
&& \ | ||
apk del .build-deps | ||
|
||
COPY --from=composer /usr/bin/composer /usr/bin/composer | ||
|
||
# Add a non-root user to prevent files being created with root permissions on host machine. | ||
RUN addgroup -g ${PGID} user && \ | ||
adduser -u ${PUID} -G user -D user | ||
|
||
WORKDIR /var/www/html | ||
|
||
USER user |
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
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
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
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
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