Skip to content

Commit

Permalink
fix github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
eucyt committed May 9, 2023
1 parent faf31d2 commit c9c7545
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# For github action
FROM php:8.2-fpm-buster as builder
FROM php:8.2-apache

COPY ./docker/php/php.ini /usr/local/etc/php/php.ini

COPY ./laravel /laravel
WORKDIR /laravel
COPY ./docker/apache/000-default.conf /etc/apache2/sites-available/
COPY ./laravel /var/www/laravel
WORKDIR /var/www/laravel

RUN apt-get update && \
apt-get -y install git unzip libzip-dev libicu-dev libonig-dev && \
Expand All @@ -25,10 +25,4 @@ RUN php artisan cache:clear \

RUN chown -R www-data:www-data storage


FROM php:8.2-apache

COPY ./docker/apache/000-default.conf /etc/apache2/sites-available/
COPY --from=builder /laravel /var/www/laravel

RUN a2ensite 000-default

0 comments on commit c9c7545

Please sign in to comment.