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.
- Loading branch information
1 parent
ec6eb18
commit 8235ffb
Showing
1 changed file
with
7 additions
and
3 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,10 +1,14 @@ | ||
FROM caddy:latest | ||
COPY . /var/www/html/public | ||
FROM php:8.2-fpm-alpine | ||
COPY . /var/www/html/ | ||
|
||
RUN apk add --no-cache git libzip-dev zip \ | ||
&& docker-php-ext-install zip \ | ||
&& cd /var/www/html/public \ | ||
&& 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 Dockerfile.caddy Dockerfile.php | ||
|
||
FROM caddy:latest | ||
COPY . /var/www/html/public | ||
COPY --from=0 /var/www/html/vendor /var/www/html/public/vendor |