Update docker build

This commit is contained in:
Ryan Prather 2024-05-17 19:25:28 -04:00
parent 6a81698f8a
commit 4c056aea8b
2 changed files with 9 additions and 8 deletions

View File

@ -16,10 +16,11 @@ RUN apt-get update && \
git \
nano
RUN docker-php-ext-configure gd --with-jpeg && \
docker-php-ext-configure zip && \
docker-php-ext-install \
pdo_sqlite \
RUN docker-php-ext-configure gd --with-jpeg
RUN docker-php-ext-configure zip
RUN docker-php-ext-install \
#pdo_sqlite \
zip \
mbstring \
exif \
@ -43,8 +44,6 @@ RUN composer install --no-scripts --no-dev --optimize-autoloader
COPY . .
RUN bash install.sh
EXPOSE 80
CMD ["apache2-foreground"]

View File

@ -2,11 +2,13 @@ version: "3"
services:
sermon-notes:
command: "php bin/console doctrine:migrations:migrate --no-interaction"
command:
- "php bin/console doctrine:migrations:migrate --no-interaction"
- "bash /var/www/html/install.sh"
build: .
environment:
- APP_ENV=prod
- DATABASE_URL="sqlite:///%kernel.project_dir%/var/data.db"
- DATABASE_URL="sqlite:///%kernel.project_dir%/data/data.db"
- MESSENGER_TRANSPORT_DSN=doctrine://default?auto_setup=0
# - DATABASE_URL="mysql://app:!ChangeMe!@127.0.0.1:3306/app"
# - DATABASE_URL="mysql://app:!ChangeMe!@127.0.0.1:3306/app?serverVersion=10.11.2-MariaDB&charset=utf8mb4"