Skip to content
Open
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
22 changes: 22 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM php:8.4-apache

RUN apt-get update && apt-get install -y \
unzip \
git \
curl \
libzip-dev \
libpng-dev \
libonig-dev \
&& docker-php-ext-install zip pdo_mysql gd mbstring

COPY --from=composer:latest /usr/bin/composer /usr/bin/composer

WORKDIR /var/www/html

COPY . /var/www/html

RUN composer install --no-interaction --no-progress --optimize-autoloader

EXPOSE 80

CMD ["apache2-foreground"]
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
]
},
"require-dev": {
"psr/log": "^1.0",
"fzaninotto/faker": "^1.7",
"psr/log": "^3.0",
"shoppingfeed/feed-xml": "^1.0"
}
}
9 changes: 9 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: '3'
services:
php:
image: php-feed-generator
ports:
- "8080:80"
volumes:
- ./:/var/www/html
working_dir: /var/www/html