-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
executable file
·21 lines (15 loc) · 843 Bytes
/
Dockerfile
File metadata and controls
executable file
·21 lines (15 loc) · 843 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM php:8.2.17-apache-bullseye
RUN apt-get update -y
RUN apt-get upgrade -y
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
RUN export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"; [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"; nvm install v20.17.0
RUN apt-get install -y --no-install-recommends unzip p7zip-full && \
rm -rf /var/lib/apt/lists/*
RUN docker-php-ext-install pdo_mysql
COPY docker/apache-default.conf /etc/apache2/sites-available/000-default.conf
RUN a2enmod rewrite
CMD ["apache2-foreground"]
RUN pecl install xdebug \
&& docker-php-ext-enable xdebug
COPY docker/php-xdebug.ini /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
COPY docker/php-error_reporting.ini /usr/local/etc/php/conf.d/error_reporting.ini