File tree Expand file tree Collapse file tree 4 files changed +15
-7
lines changed
Expand file tree Collapse file tree 4 files changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -2,12 +2,12 @@ FROM dunglas/frankenphp
22
33COPY . /app
44
5- RUN apt-get update && apt-get install -y git libicu-dev zip unzip
5+ RUN apt-get update && apt-get install -y git libicu-dev libzip-dev libpng-dev zip unzip libxml2-dev
66
77RUN apt-get install sqlite3 libsqlite3-dev
88
9- RUN docker-php-ext-install intl pdo_sqlite
9+ RUN docker-php-ext-install intl pdo_sqlite zip gd xml
1010
11- RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
11+ RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
1212
1313RUN composer install
Original file line number Diff line number Diff line change @@ -25,6 +25,10 @@ Checkout the repository jump to the folder and run the following commands:
2525``` bash
2626docker-compose up
2727```
28+ Run DB migrations from container
29+ ``` bash
30+ php bin/console doctrine:migrations:migrate
31+ ```
2832
2933### How to run locally without docker
3034Make sure you have PHP 8.2 and composer installed.
@@ -37,6 +41,10 @@ Install dependencies:
3741``` bash
3842composer install
3943```
44+ Run database migrations:
45+ ``` bash
46+ php bin/console doctrine:migrations:migrate
47+ ```
4048Run the server:
4149``` bash
4250php -S localhost:8000 -t public
Original file line number Diff line number Diff line change 77 "php" : " >=8.2" ,
88 "ext-ctype" : " *" ,
99 "ext-iconv" : " *" ,
10+ "ext-xml" : " *" ,
11+ "ext-gd" : " *" ,
12+ "ext-zip" : " *" ,
1013 "doctrine/doctrine-bundle" : " ^2.11" ,
1114 "doctrine/doctrine-migrations-bundle" : " ^3.3" ,
1215 "doctrine/orm" : " ^2.17" ,
6164 "scripts" : {
6265 "auto-scripts" : {
6366 "cache:clear" : " symfony-cmd" ,
64- "assets:install %PUBLIC_DIR%" : " symfony-cmd" ,
65- "doctrine:migrations:migrate" : " symfony-cmd"
67+ "assets:install %PUBLIC_DIR%" : " symfony-cmd"
6668 },
6769 "post-install-cmd" : [
6870 " @auto-scripts"
Original file line number Diff line number Diff line change @@ -9,6 +9,4 @@ services:
99 - 443:443
1010 volumes :
1111 - ./:/app
12- - caddy_data:/data
13- - caddy_config:/config
1412 tty : true
You can’t perform that action at this time.
0 commit comments