Created
July 10, 2016 01:31
-
-
Save gngchrs/2b96774eb083036cadc8c829e9025f02 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 php:7 | |
# Work Dir | |
WORKDIR /opt/app | |
ADD . /opt/app | |
# Install Dependencies | |
RUN apt-get update && apt-get install -y \ | |
libpq-dev \ | |
&& docker-php-ext-install pdo_pgsql | |
RUN curl -sS https://getcomposer.org/installer | php | |
RUN mv composer.phar /usr/local/bin/composer | |
RUN chmod +x /usr/local/bin/composer | |
CMD composer install | |
# Expose the port | |
EXPOSE 8000 | |
# Run the app | |
CMD php artisan serve --host=0.0.0.0 --port=8000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment