Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
# Use an official PHP image as the base image
FROM php:8.2-fpm
FROM php:8.1-cli

# Install necessary extensions (e.g., for Composer)
RUN apt-get update && apt-get install -y libpng-dev libjpeg-dev libfreetype6-dev \
RUN apt-get update && apt-get install -y libpng-dev libjpeg-dev libfreetype6-dev git libzip-dev zip \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install gd
&& docker-php-ext-install gd zip

# Set working directory
WORKDIR /var/www

# Copy the composer.phar file to the container
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer

# Expose PHP-FPM port
EXPOSE 9000

# Start PHP-FPM server
CMD ["php-fpm"]
18 changes: 14 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@
"nyholm/psr7": "^1.8"
},
"require-dev": {
"phpunit/phpunit": "^11.0",
"phpunit/phpunit": "^10.0",
"friendsofphp/php-cs-fixer": "^3.68",
"vimeo/psalm": "^6.5"
"vimeo/psalm": "^6.8",
"dg/bypass-finals": "^1.9",
"psalm/plugin-phpunit": "^0.19.2"

},
"autoload": {
Expand All @@ -28,7 +30,15 @@
"authors": [
{
"name": "p123-stack",
"email": "pratikshazalte83@gmail.com"
"email": "pratiksha@nagels.tech"
},
{
"name": "123kiran17",
"email": "kiran@nagels.tech"
},
{
"name": "Ghlen Nagels",
"email": "ghlen@nagels.tech"
}
],
"config": {
Expand All @@ -40,7 +50,7 @@
"scripts": {
"cs": "vendor/bin/php-cs-fixer fix --dry-run --diff --allow-risky=yes",
"cs:fix": "vendor/bin/php-cs-fixer fix --allow-risky=yes",
"psalm": "vendor/bin/psalm"
"psalm": "vendor/bin/psalm --no-cache --show-info=true"
}

}
Loading