Skip to content

Commit

Permalink
small adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
dersonsena committed Nov 13, 2021
1 parent e7b2b28 commit e8eb548
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions php-nginx-dev/7.4/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@ RUN chown -R nginx:nginx /var/www/html
COPY ./nginx/entrypoint.sh /etc/entrypoint.sh
RUN chmod +x /etc/entrypoint.sh
RUN rm -rf /var/cache/apk/*
RUN sh /etc/entrypoint-php74.sh

ENTRYPOINT ["/etc/entrypoint.sh"]
1 change: 1 addition & 0 deletions php-nginx-dev/8.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@ RUN chown -R nginx:nginx /var/www/html
COPY ./nginx/entrypoint.sh /etc/entrypoint.sh
RUN chmod +x /etc/entrypoint.sh
RUN rm -rf /var/cache/apk/*
RUN sh /etc/entrypoint-php80.sh

ENTRYPOINT ["/etc/entrypoint.sh"]
6 changes: 3 additions & 3 deletions php/7.4/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,11 @@ RUN cp /usr/local/etc/php/php.ini-development /usr/local/etc/php/php.ini

RUN curl -fsSL https://getcomposer.org/installer | php -- --version=${COMPOSER_VERSION} --install-dir=/usr/local/bin --filename=composer

COPY entrypoint.sh /etc/entrypoint.sh
RUN chmod +x /etc/entrypoint.sh
COPY entrypoint.sh /etc/entrypoint-php74.sh
RUN chmod +x /etc/entrypoint-php74.sh
RUN apk del $PHPIZE_DEPS
RUN rm -rf /var/cache/apk/*

WORKDIR /
EXPOSE 9000
ENTRYPOINT ["/etc/entrypoint.sh"]
ENTRYPOINT ["/etc/entrypoint-php74.sh"]
6 changes: 3 additions & 3 deletions php/8.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,10 @@ RUN rm -rf /var/cache/apk/*

RUN curl -fsSL https://getcomposer.org/installer | php -- --version=${COMPOSER_VERSION} --install-dir=/usr/local/bin --filename=composer

COPY entrypoint.sh /etc/entrypoint.sh
RUN chmod +x /etc/entrypoint.sh
COPY entrypoint.sh /etc/entrypoint-php80.sh
RUN chmod +x /etc/entrypoint-php80.sh
RUN apk del $PHPIZE_DEPS && rm -rf /var/cache/apk/*

WORKDIR /
EXPOSE 9000
ENTRYPOINT ["/etc/entrypoint.sh"]
ENTRYPOINT ["/etc/entrypoint-php80.sh"]

0 comments on commit e8eb548

Please sign in to comment.