forked from HAWK-Digital-Environments/HAWKI
-
Notifications
You must be signed in to change notification settings - Fork 0
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 #12 from hm-edu/develop
Develop
- Loading branch information
Showing
4 changed files
with
76 additions
and
11 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 |
---|---|---|
@@ -1,16 +1,20 @@ | ||
FROM php:8.2-fpm-alpine AS BUILD | ||
FROM php:8.3-fpm-alpine AS BUILD | ||
COPY . /var/www/html/ | ||
#COPY composer_install.sh composer.json /var/www/html/ | ||
ADD --chmod=0755 https://github.com/mlocati/docker-php-extension-installer/releases/download/2.2.16/install-php-extensions /usr/local/bin/ | ||
RUN apk add --no-cache git libzip-dev zip \ | ||
&& docker-php-ext-install zip \ | ||
&& cd /var/www/html \ | ||
&& chmod +x composer_install.sh && ./composer_install.sh \ | ||
&& mv composer.phar /usr/local/bin/composer \ | ||
&& composer install --no-cache \ | ||
&& rm composer_install.sh | ||
&& install-php-extensions pdo pdo_pgsql | ||
|
||
|
||
|
||
FROM php:8.2-fpm-alpine | ||
FROM php:8.3-fpm-alpine | ||
WORKDIR /var/www/html | ||
COPY --from=BUILD /var/www/html /var/www/html | ||
COPY --from=BUILD /var/www/html /var/www/html | ||
# pdo pdo_pgsql dependencies | ||
COPY --from=BUILD /usr/lib/libpgtypes.so.* /usr/lib/ | ||
COPY --from=BUILD /usr/lib/libpq.so.* /usr/lib/ | ||
COPY --from=BUILD /usr/lib/libecpg.so.* /usr/lib | ||
COPY --from=BUILD /usr/local/etc/php/conf.d/docker-php-ext-pdo_pgsql.ini /usr/local/etc/php/conf.d/ | ||
COPY --from=BUILD /usr/local/lib/php/extensions /usr/local/lib/php/extensions |
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