Skip to content

Instantly share code, notes, and snippets.

@paulinevos
Created March 6, 2021 13:20
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 paulinevos/77bbb7027f99185303abcdf03e85b8ba to your computer and use it in GitHub Desktop.
Save paulinevos/77bbb7027f99185303abcdf03e85b8ba to your computer and use it in GitHub Desktop.
FROM php:7.4.15
RUN apt-get -y update && apt-get -y upgrade
RUN apt-get -y install git libzip-dev zip
RUN docker-php-ext-configure zip
RUN docker-php-ext-install zip
RUN php -r "readfile('https://getcomposer.org/installer');" > composer-setup.php && php composer-setup.php && php -r "unlink('composer-setup.php');" && mv composer.phar /usr/local/bin/composer
WORKDIR /app
COPY . .
RUN composer install
CMD ["php", "run.php"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment