|
|
|
@ -25,11 +25,11 @@ RUN echo "memory_limit = 256M" > /usr/local/etc/php/conf.d/custom.ini \ |
|
|
|
# Set working directory |
|
|
|
# Set working directory |
|
|
|
WORKDIR /var/www/html |
|
|
|
WORKDIR /var/www/html |
|
|
|
|
|
|
|
|
|
|
|
# Copy application code |
|
|
|
|
|
|
|
COPY --chown=www-data:www-data . . |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Expose port 9000 for PHP-FPM |
|
|
|
# Expose port 9000 for PHP-FPM |
|
|
|
EXPOSE 9000 |
|
|
|
EXPOSE 9000 |
|
|
|
|
|
|
|
|
|
|
|
# Start PHP-FPM |
|
|
|
COPY docker/entrypoint.sh /entrypoint.sh |
|
|
|
|
|
|
|
RUN chmod +x /entrypoint.sh |
|
|
|
|
|
|
|
ENTRYPOINT [ "/entrypoint.sh" ] |
|
|
|
|
|
|
|
|
|
|
|
CMD ["php-fpm"] |
|
|
|
CMD ["php-fpm"] |