-
Notifications
You must be signed in to change notification settings - Fork 1
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
2 changed files
with
40 additions
and
0 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
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,26 @@ | ||
FROM php:8.3-cli-alpine | ||
|
||
RUN mv "$PHP_INI_DIR/php.ini-development" "$PHP_INI_DIR/php.ini" | ||
|
||
ARG USER_ID=1000 | ||
ENV USER_ID ${USER_ID} | ||
ARG GROUP_ID=1000 | ||
ENV GROUP_ID ${GROUP_ID} | ||
|
||
RUN set -eu; \ | ||
addgroup -g ${USER_ID} csdev; \ | ||
adduser -D -u ${USER_ID} -G csdev csdev | ||
|
||
ADD blog.php.ini "$PHP_INI_DIR/conf.d/blog.ini" | ||
|
||
WORKDIR /var/dev | ||
|
||
ADD --chmod=0755 https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ | ||
RUN install-php-extensions soap pcntl bcmath gd exif sockets zip xdebug redis intl pdo_pgsql pgsql mysqli | ||
|
||
## Install supervisord | ||
RUN apk add --no-cache supervisor | ||
|
||
ADD supervisord.conf /etc/supervisord.conf | ||
|
||
CMD ["supervisord", "-c", "/etc/supervisord.conf", "-n"] |