File tree Expand file tree Collapse file tree 2 files changed +42
-1
lines changed
Expand file tree Collapse file tree 2 files changed +42
-1
lines changed Original file line number Diff line number Diff line change @@ -44,11 +44,20 @@ an issue or pull request.
4444- Submit a pull request immediately even before completing your code but, add the ` [WIP] ` tag to the title.
4545- If you want to contribute, but don't know where to start? check the project board and grab your next task.
4646
47+ ### Development environment
48+ You can build the docker image using the following command:
49+
50+ ``` bash
51+ docker build -t imdhemy/liap .
52+ ```
53+
54+ Then you can configure PHPStorm to use the docker image as a remote interpreter.
55+
4756### Requirements
4857
4958Requirements related to code the code contribution listed below:
5059
51- - ` PSR-12 ` coding standard. Use ` composer format ` to apply conventions.
60+ - ` Symfony ` coding standard. Use ` composer format ` to apply conventions.
5261- Add tests! - Your patch won't be accepted if it does not have tests.
5362- Document any change in behaviour - Make sure the README.md and any other relevant documentation are kept up-to-date.
5463- One pull request per feature - If you want to do more than one thing, send multiple pull requests.
Original file line number Diff line number Diff line change 1+ FROM php:8.1-fpm
2+
3+ # Install dependencies
4+ RUN apt-get update && apt-get install -y \
5+ libfreetype6-dev \
6+ libjpeg62-turbo-dev \
7+ libpng-dev \
8+ libzip-dev \
9+ zip \
10+ unzip \
11+ git \
12+ curl \
13+ && docker-php-ext-configure gd --with-freetype --with-jpeg \
14+ && docker-php-ext-install -j$(nproc) gd \
15+ && docker-php-ext-install pdo pdo_mysql zip
16+
17+ # Install Xdebug
18+ RUN pecl install xdebug \
19+ && docker-php-ext-enable xdebug
20+
21+ # Install Composer
22+ COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
23+
24+ # Set working directory
25+ COPY . /var/www
26+ WORKDIR /var/www
27+
28+ # Expose port 9003 for Xdebug
29+ EXPOSE 9003
30+
31+ # Start PHP-FPM server
32+ CMD ["php-fpm" ]
You can’t perform that action at this time.
0 commit comments