FROM vcarreira/php7:latest

COPY app/ /app
WORKDIR /app

RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer

RUN composer install
RUN touch /app/database/database.sqlite
RUN php artisan migrate
RUN php artisan db:seed
CMD ["php", "artisan", "serve", "--host=0.0.0.0", "--port=3000"]
