瀏覽代碼

Add missing PHP ext to Docker setup

Bubka 3 年之前
父節點
當前提交
54fcfce351
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      Dockerfile

+ 3 - 0
Dockerfile

@@ -17,6 +17,9 @@ ARG UID=1000
 ARG GID=1000
 ARG GID=1000
 COPY --from=build-composer --chown=${UID}:${GID} /usr/bin/composer /usr/bin/composer
 COPY --from=build-composer --chown=${UID}:${GID} /usr/bin/composer /usr/bin/composer
 RUN apk add --no-cache unzip
 RUN apk add --no-cache unzip
+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 && \
+    install-php-extensions gd bcmath
 WORKDIR /srv
 WORKDIR /srv
 COPY artisan composer.json ./
 COPY artisan composer.json ./
 COPY database ./database
 COPY database ./database