Skip to content

Commit

Permalink
fix extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
C4illin committed Feb 5, 2024
1 parent 4f5a9d4 commit decd3f5
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
FROM php:8.2-apache

WORKDIR /var/www/

ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/

RUN chmod +x /usr/local/bin/install-php-extensions && sync && \
install-php-extensions mbstring mysqli pdo pdo_mysql openssl

RUN apt-get update && \
apt-get install -y git unzip
apt-get install -y git unzip curl

COPY --from=composer:2 /usr/bin/composer /usr/local/bin/composer

WORKDIR /var/www/

COPY . .
RUN composer install --optimize-autoloader --no-dev

Expand Down

0 comments on commit decd3f5

Please sign in to comment.