Skip to content

Commit ed41711

Browse files
committed
Added missing libraries to Dockerfile
1 parent da8ceef commit ed41711

File tree

4 files changed

+15
-7
lines changed

4 files changed

+15
-7
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ FROM dunglas/frankenphp
22

33
COPY . /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

77
RUN 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

1313
RUN composer install

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ Checkout the repository jump to the folder and run the following commands:
2525
```bash
2626
docker-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
3034
Make sure you have PHP 8.2 and composer installed.
@@ -37,6 +41,10 @@ Install dependencies:
3741
```bash
3842
composer install
3943
```
44+
Run database migrations:
45+
```bash
46+
php bin/console doctrine:migrations:migrate
47+
```
4048
Run the server:
4149
```bash
4250
php -S localhost:8000 -t public

composer.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
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",
@@ -61,8 +64,7 @@
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"

docker-compose.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)