FROM webdevops/php-apache-dev:8.1

RUN apt-get update --allow-releaseinfo-change
RUN apt-get install -y software-properties-common
RUN apt-get install -y firebird-dev firebird3.0-utils
RUN docker-php-source extract
RUN git clone --branch v3.0.0 --depth 1 https://github.com/FirebirdSQL/php-firebird.git /usr/src/php/ext/interbase
RUN docker-php-ext-install interbase
RUN curl -sL https://deb.nodesource.com/setup_18.x | bash
RUN apt-get install -y nodejs
RUN curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | tee /usr/share/keyrings/yarnkey.gpg >/dev/null
RUN echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN apt-get update && apt-get install yarn

#Externes Debugging aktivieren
#ENV XDEBUG_MODE=debug
#ENV XDEBUG_START_WITH_REQUEST=yes
#ENV XDEBUG_CLIENT_HOST 127.0.0.1