Files
vivespos-landing/Dockerfile
avives 1f72193a64
Some checks are pending
Module sub-split / Sub-split (push) Waiting to run
feat: VivesPOS landing on Winter CMS 1.2 — theme + plugin + Dockerfile
- Base: wintercms/winter branch 1.2 (full framework)
- Theme vivespos: Canvas 7 + Bootstrap 5 CDN, custom CSS
- Layout: deferred GTM/GA4 tracking, JSON-LD SoftwareApplication
- Partials: hero (offline-first), features, modes (offline/nube toggle),
  screenshots, pricing (3 planes), comparison, FAQ, CTA
- Plugin VivesPOS.Site with ContactForm
- Dockerfile: PHP 8.2 Apache, port 80, healthcheck
- Added winter/wn-pages, blog, sitemap, seo plugins
- Active theme set to vivespos
2026-08-21 19:29:00 -06:00

46 lines
1.6 KiB
Docker

FROM php:8.2-apache-bookworm
LABEL coolify.managed=true
LABEL maintainer="VivesPOS"
ENV APACHE_DOCUMENT_ROOT=/var/www/html
ENV COMPOSER_ALLOW_SUPERUSER=1
RUN apt-get update && apt-get install -y --no-install-recommends \
libpng-dev libjpeg-dev libfreetype6-dev libzip-dev libsqlite3-dev \
unzip git curl && \
docker-php-ext-configure gd --with-freetype --with-jpeg && \
docker-php-ext-install gd zip pdo_sqlite pdo_mysql mbstring exif opcache && \
a2enmod rewrite headers expires && \
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && \
apt-get clean && rm -rf /var/lib/apt/lists/*
RUN sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' \
/etc/apache2/sites-available/*.conf && \
sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' \
/etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf && \
printf '<Directory ${APACHE_DOCUMENT_ROOT}>\n AllowOverride All\n Require all granted\n</Directory>\n' \
> /etc/apache2/conf-available/vivespos.conf && \
a2enconf vivespos
WORKDIR /var/www/html
COPY . .
RUN composer install --no-dev --optimize-autoloader --no-interaction || true
RUN php artisan winter:version 2>/dev/null || true
RUN php artisan key:generate --force 2>/dev/null || true
RUN chown -R www-data:www-data /var/www/html && \
chmod -R 755 /var/www/html && \
chmod -R 777 storage bootstrap/cache themes plugins
EXPOSE 80
HEALTHCHECK --interval=30s --timeout=5s --retries=3 \
CMD curl -f http://localhost:80/ || exit 1
CMD ["apache2-foreground"]