Skip to content

Commit

Permalink
fix(dockerfile): intl php extension is not installed (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
m90 authored Jun 4, 2024
1 parent acb2aa7 commit 7a50ebf
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
Expand Up @@ -10,8 +10,13 @@ FROM php:7.2-apache

LABEL org.opencontainers.image.source="https://github.com/wbstack/quickstatements"

# For session storage
RUN pecl install redis-4.0.1 && docker-php-ext-enable redis
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install --yes --no-install-recommends gettext-base=0.19.8.1-9 jq=1.5+dfsg-2+b1 libicu-dev=63.1-6+deb10u3 && \
rm -rf /var/lib/apt/lists/* && \
docker-php-ext-configure intl && \
docker-php-ext-install intl && \
pecl install redis-4.0.1 && \
docker-php-ext-enable redis

ENV APACHE_DOCUMENT_ROOT /var/www/html/quickstatements/public_html
#TODO do 2 tuns in 1 layer..
Expand All @@ -28,4 +33,4 @@ COPY --from=composer /installing/classes /var/www/html/magnustools/classes
COPY --from=composer /installing/public_html/php /var/www/html/magnustools/public_html/php

ENTRYPOINT ["/bin/bash"]
CMD ["/entrypoint.sh"]
CMD ["/entrypoint.sh"]

0 comments on commit 7a50ebf

Please sign in to comment.