Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Dockerfile #121

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM php:8.3-apache

ENV TZ="Europe/Moscow"
WORKDIR /var/www/html

COPY . /var/www/html/

RUN apt-get update && apt-get -y install rrdtool librrd-dev && \
pecl install rrd && \
docker-php-ext-enable rrd && \
a2enmod rewrite deflate headers expires && \
curl -o composer.phar https://getcomposer.org/download/2.8.3/composer.phar && \
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please use https://getcomposer.org/download/latest-stable/composer.phar

php composer.phar install --no-dev

RUN sed -ri -e 's!AllowOverride None!AllowOverride All!' /etc/apache2/apache2.conf

CMD ["sh", "-c", "php ./backend/cli.php start && apache2-foreground"]