-
Notifications
You must be signed in to change notification settings - Fork 27
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 #50 from jkaninda/develop
Add php 8.1 alpine version
- Loading branch information
Showing
3 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
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,21 @@ | ||
FROM php:8.1-fpm-alpine | ||
ARG WORKDIR=/var/www/html | ||
ENV DOCUMENT_ROOT=${WORKDIR} | ||
ENV LARAVEL_PROCS_NUMBER=1 | ||
ARG HOST_UID=1000 | ||
ENV USER=www-data | ||
|
||
# Install the PHP pdo_mysql extention | ||
RUN docker-php-ext-install pdo_mysql | ||
|
||
# Install Composer | ||
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer | ||
|
||
# Set working directory | ||
WORKDIR $WORKDIR | ||
|
||
RUN rm -Rf /var/www/* && \ | ||
mkdir -p /var/www/html | ||
|
||
ADD src/index.php $WORKDIR/index.php | ||
ADD src/php.ini $PHP_INI_DIR/conf.d/ |