# Use a PHP runtime as a parent image FROM §FRAMEWORK_REPOSITORY§/§FRAMEWORK_IMAGE§:§FRAMEWORK_VERSION§-webserver # Set the working directory to /app WORKDIR /§PROJECT_BUILDNAME§ # Install GD (required by mpdf) RUN apt-get update && \ apt-get install -yq --no-install-recommends libpng-dev zlib1g-dev && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* RUN docker-php-ext-install gd # Install Memcached RUN apt-get update && apt-get install -y libmemcached-dev \ && pecl install memcached-3.1.5 \ && docker-php-ext-enable memcached # Copy the current directory contents into the container at /app COPY ./app /§PROJECT_BUILDNAME§ COPY ./version /§PROJECT_BUILDNAME§ COPY ./config /§PROJECT_BUILDNAME§ COPY ./install /§PROJECT_BUILDNAME§ RUN chmod 744 /§PROJECT_BUILDNAME§/install RUN /§PROJECT_BUILDNAME§/install webserver ENTRYPOINT ["§PROJECT_BUILDNAME§-entrypoint"] # Make port 80 available to the world outside this container EXPOSE 80