mandant-crm/docker/php/Dockerfile.prod
Tim Stollberg a95fac5c0d feat(docker): add production docker-compose for Coolify deployment
Coolify builds with --project-directory set to the repo root, which broke
the dev compose file's relative paths. Adds a dedicated prod compose stack
(baked-in code, no bind mounts, no hardcoded secrets, static Nuxt build
served by nginx) so local dev and Coolify no longer share fragile path
assumptions.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-18 14:59:06 +07:00

26 lines
577 B
Docker

FROM php:8.2-cli-alpine
RUN apk add --no-cache \
curl \
libpng-dev \
libxml2-dev \
zip \
unzip \
git \
sqlite-dev \
&& docker-php-ext-install pdo pdo_mysql pdo_sqlite gd
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
WORKDIR /var/www/html
COPY backend/ /var/www/html
COPY docker/php/entrypoint.prod.sh /entrypoint.sh
RUN composer install --no-dev --optimize-autoloader --no-interaction \
&& chmod +x /entrypoint.sh \
&& chown -R www-data:www-data storage bootstrap/cache
EXPOSE 8000
ENTRYPOINT ["/entrypoint.sh"]