Differences between your Docker images and stock ones

Hi guys!

Been pulled off my Docker-on-AWS project for another “crisis” so I haven’t been able to dive into things as much as I like, but I do have a question for you:

I noticed in your CF stack templates, I’m pulling Docker images from your repos. I was wondering what changes, if any, did you make to your images from a canonical/stock image, i.e. what’s the diff between, say, your cloudonaut/docker-on-aws-php-apache:latest image and what appears to be the stock image php:7.4-apache by egidio docile? Other than software versions, of course.


Hi @faberfedor

The best way to answer your question is by looking at the Dockerfile that is used to build the cloudonaut/docker-on-aws-php-apache image:

FROM php:7.3-apache-stretch

It is based on the official php image.

We configure php:

RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
RUN docker-php-ext-install -j$(nproc) pdo pdo_mysql

Install envsubst

RUN apt-get update && apt-get install -y gettext
COPY docker/custom-entrypoint /usr/local/bin/
RUN chmod u+x /usr/local/bin/custom-entrypoint
ENTRYPOINT ["custom-entrypoint"]
RUN mkdir /var/www/html/conf/
COPY conf/*.tmp /tmp/conf/

Copy the application

COPY css /var/www/html/css
COPY img /var/www/html/img
COPY *.php /var/www/html/
COPY lib /var/www/html/lib
RUN chown -R www-data:www-data /var/www/html

Start Apache server

CMD ["apache2-foreground"]

I hope that helps

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.