Skip to content

Commit

Permalink
fix caddy
Browse files Browse the repository at this point in the history
  • Loading branch information
fritterhoff committed Dec 21, 2023
1 parent ec6eb18 commit 8235ffb
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Dockerfile.caddy
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

0 comments on commit 8235ffb

Please sign in to comment.