Created
February 28, 2019 03:32
-
-
Save raank/96157a00645bd691d52a9861e787b64a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM phpdockerio/php73-fpm:latest | |
WORKDIR "/application" | |
# Fix debconf warnings upon build | |
ARG DEBIAN_FRONTEND=noninteractive | |
# Install selected extensions and other stuff | |
RUN apt-get update \ | |
&& apt-get -y --no-install-recommends install php7.3-mysql php-redis php7.3-sqlite3 \ | |
&& apt-get clean; rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/* | |
# Install git | |
RUN apt-get update \ | |
&& apt-get -y install git \ | |
&& apt-get clean; rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/* | |
# Runner composer | |
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer | |
RUN composer install | |
# Runner migrations | |
RUN php artisan migrate \ | |
&& php artisan migrate --env=testing | |
# Runner server | |
CMD php artisan serve --host=0.0.0.0 --port=8000 | |
EXPOSE 8000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment