| ARG RELEASE |
| ARG LAUNCHPAD_BUILD_ARCH |
| LABEL org.opencontainers.image.version=22.04 |
| ADD file:14c8897ef5107db11b35f5a0c05bdcb883c0a6daa83d07d4439865541f08514c in / |
| CMD ["/bin/bash"] |
| ENV DEBIAN_FRONTEND=noninteractive |
| ENV TZ=America/Argentina/Cordoba |
| /bin/sh -c apt-get update && apt-get install -y software-properties-common curl tzdata && add-apt-repository ppa:ondrej/php && apt-get update && apt-get install -y nginx cron supervisor php8.2 php8.2-fpm php8.2-mysql php8.2-mbstring php8.2-xml php8.2-curl php8.2-zip php8.2-gd php8.2-intl && rm -rf /var/lib/apt/lists/* |
| /bin/sh -c curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer |
| /bin/sh -c ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone |
| /bin/sh -c sed -i 's/^user = .*/user = www-data/' /etc/php/8.2/fpm/pool.d/www.conf && sed -i 's/^group = .*/group = www-data/' /etc/php/8.2/fpm/pool.d/www.conf && sed -i 's|^listen = .*|listen = /var/run/php/php8.2-fpm.sock|' /etc/php/8.2/fpm/pool.d/www.conf && sed -i 's/^;listen.owner = .*/listen.owner = www-data/' /etc/php/8.2/fpm/pool.d/www.conf && sed -i 's/^;listen.group = .*/listen.group = www-data/' /etc/php/8.2/fpm/pool.d/www.conf && echo "clear_env = no" >> /etc/php/8.2/fpm/pool.d/www.conf && sed -i 's/^pm = .*/pm = static/' /etc/php/8.2/fpm/pool.d/www.conf && sed -i 's/^pm.max_children = .*/pm.max_children = 5/' /etc/php/8.2/fpm/pool.d/www.conf && mkdir -p /var/run/php |
| COPY file:12e7efe1dd3e26966125ee65ec749146162689a3fc4f1df33ac8af5fa8db8a6b in /etc/nginx/sites-available/turnito |
| /bin/sh -c ln -sf /etc/nginx/sites-available/turnito /etc/nginx/sites-enabled/turnito && rm -f /etc/nginx/sites-enabled/default |
| COPY file:f0eb878523480073ee2ba32a53b375e2eefa047d43a072987e5b2e63a4a8c245 in /etc/php/8.2/fpm/conf.d/99-security.ini |
| COPY file:f0eb878523480073ee2ba32a53b375e2eefa047d43a072987e5b2e63a4a8c245 in /etc/php/8.2/cli/conf.d/99-security.ini |
| WORKDIR /var/www/html |
| COPY dir:45974fe6766a04ea966cd307abf20162c0fbdb4dc1e166323d17bdb6b6c3214f in /var/www/html/ |
| /bin/sh -c composer install --no-dev --optimize-autoloader --working-dir=/var/www/html && chown -R www-data:www-data /var/www/html && find /var/www/html -type d -exec chmod 755 {} \; && find /var/www/html -type f -exec chmod 644 {} \; |
| COPY file:b0f039cfe0759a27a30c14c8b39b4bc31f80ac02fb73cfc52f7cad3c34cfdee0 in /etc/cron.d/turnosok |
| /bin/sh -c chmod 0644 /etc/cron.d/turnosok |
| COPY file:6d198a68ae03bdcbafedb1276d864bc7b8c6331f31c9b000c54c3dad8c6a2be3 in /etc/supervisor/conf.d/turnosok.conf |
| COPY file:106b4f19ac78233ea388fc538d5c2eb22609d84df476c0fbe43f46d1eca77787 in /start.sh |
| /bin/sh -c chmod +x /start.sh |
| EXPOSE 80 |
| CMD ["/start.sh"] |