Update docker build
This commit is contained in:
parent
6a81698f8a
commit
4c056aea8b
11
Dockerfile
11
Dockerfile
@ -16,10 +16,11 @@ RUN apt-get update && \
|
|||||||
git \
|
git \
|
||||||
nano
|
nano
|
||||||
|
|
||||||
RUN docker-php-ext-configure gd --with-jpeg && \
|
RUN docker-php-ext-configure gd --with-jpeg
|
||||||
docker-php-ext-configure zip && \
|
RUN docker-php-ext-configure zip
|
||||||
docker-php-ext-install \
|
|
||||||
pdo_sqlite \
|
RUN docker-php-ext-install \
|
||||||
|
#pdo_sqlite \
|
||||||
zip \
|
zip \
|
||||||
mbstring \
|
mbstring \
|
||||||
exif \
|
exif \
|
||||||
@ -43,8 +44,6 @@ RUN composer install --no-scripts --no-dev --optimize-autoloader
|
|||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN bash install.sh
|
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|
||||||
CMD ["apache2-foreground"]
|
CMD ["apache2-foreground"]
|
||||||
|
@ -2,11 +2,13 @@ version: "3"
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
sermon-notes:
|
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: .
|
build: .
|
||||||
environment:
|
environment:
|
||||||
- APP_ENV=prod
|
- 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
|
- 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"
|
||||||
# - DATABASE_URL="mysql://app:!ChangeMe!@127.0.0.1:3306/app?serverVersion=10.11.2-MariaDB&charset=utf8mb4"
|
# - DATABASE_URL="mysql://app:!ChangeMe!@127.0.0.1:3306/app?serverVersion=10.11.2-MariaDB&charset=utf8mb4"
|
||||||
|
Loading…
Reference in New Issue
Block a user