Skip to content

Commit

Permalink
release v1.5.5 prep
Browse files Browse the repository at this point in the history
  • Loading branch information
Velliz committed Jan 20, 2023
1 parent 0d61e7c commit a1fff56
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.15
FROM alpine:3.11

LABEL Maintainer="Tim de Pater <[email protected]>" \
Description="Lightweight container with Nginx 1.14 & PHP-FPM 7.2 based on Alpine Linux."
Expand All @@ -9,10 +9,6 @@ RUN apk --no-cache add php7 php7-session php7-common php7-fpm php7-pdo php7-xdeb
php7-xml php7-phar php7-intl php7-dom php7-ctype php7-zip php7-xmlwriter php7-xmlrpc \
git nginx supervisor curl zlib-dev zlib musl zip

# fix work iconv library with alphine
RUN apk add gnu-libiconv
ENV LD_PRELOAD /usr/lib/preloadable_libiconv.so php

# Configure nginx
COPY bootstrap/nginx.conf /etc/nginx/nginx.conf

Expand All @@ -35,6 +31,10 @@ RUN chmod -R 777 /var/www/html
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer
RUN composer install --ignore-platform-reqs --no-dev

# Fix iconv
RUN apk add --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/community gnu-libiconv
ENV LD_PRELOAD /usr/lib/preloadable_libiconv.so php

EXPOSE 80 443

CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]

0 comments on commit a1fff56

Please sign in to comment.