Skip to content

Instantly share code, notes, and snippets.

@juniorb2ss
Created March 9, 2021 16:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juniorb2ss/9198f456edbe871be185998bb047ae38 to your computer and use it in GitHub Desktop.
Save juniorb2ss/9198f456edbe871be185998bb047ae38 to your computer and use it in GitHub Desktop.
ext-fiber dockerfile
FROM php:latest
RUN apt-get update && \
apt-get install -y git && \
git clone https://github.com/amphp/ext-fiber && \
cd ext-fiber && phpize && ./configure && make && make test && make install
RUN echo '\
extension=fiber\n\
' >> /usr/local/etc/php/conf.d/docker-php-ext-fiber.ini
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
WORKDIR /fiber
COPY . .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment