Skip to content

Instantly share code, notes, and snippets.

@gngchrs
Created July 10, 2016 01:31
Show Gist options
  • Save gngchrs/2b96774eb083036cadc8c829e9025f02 to your computer and use it in GitHub Desktop.
Save gngchrs/2b96774eb083036cadc8c829e9025f02 to your computer and use it in GitHub Desktop.
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