File tree Expand file tree Collapse file tree 1 file changed +20
-6
lines changed
Expand file tree Collapse file tree 1 file changed +20
-6
lines changed Original file line number Diff line number Diff line change 1- FROM drupal:11 -apache
1+ FROM php:8.3 -apache
22
3- # Install sqlite3 CLI
4- RUN apt-get update && apt-get install -y sqlite3
3+ # Install system dependencies
4+ RUN apt-get update && apt-get install -y \
5+ sqlite3 \
6+ libsqlite3-dev \
7+ unzip \
8+ git \
9+ && docker-php-ext-install pdo pdo_sqlite apcu
510
6- # Copy only what's required to run the config-tool
11+ # Set working directory
12+ WORKDIR /var/www
13+
14+ # Copy application files
715COPY web/ web/
816COPY vendor/ vendor/
917COPY docker/entrypoint.sh /entrypoint.sh
1018
19+ # Set permissions
1120RUN chmod +x /entrypoint.sh \
12- && chown -R www-data:www-data /var/www \
13- && ln -sf /var/www/web /var/www/html
21+ && chown -R www-data:www-data /var/www
22+
23+ # Create symlink: html -> web
24+ RUN ln -sf /var/www/web /var/www/html
1425
26+ # Set working directory inside the container to the webroot
1527WORKDIR /var/www/html
1628
29+ # Set environment variable to detect Docker
1730ENV DRUPAL_DOCKER=1
1831
32+ # Set entrypoint
1933ENTRYPOINT ["/entrypoint.sh" ]
2034
2135EXPOSE 80
You can’t perform that action at this time.
0 commit comments