Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/node_modules
/public/storage
/public/css
/public/img
/public/js
/public/hot
/storage/*.key
/vendor
Homestead.json
Homestead.yaml
.env
/config/customRules.php
mix-manifest.json
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM node:7 as node
FROM eboraas/laravel
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not familiar with Docker. Is this a reputed resource?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not an official build from the laravel team.
Though it got quite a few stars and it's an automated build (source: https://bitbucket.org/EdBoraas/apache-docker/src/master/laravel/)


COPY --from=node /usr/local/bin/yarn /usr/local/bin/yarn
COPY --from=node /usr/local/bin/node /usr/local/bin/node

COPY ./ /var/www/laravel
WORKDIR /var/www/laravel

RUN composer install
RUN php artisan kupo:init

EXPOSE 8000

CMD php artisan serve --host=0.0.0.0
9 changes: 7 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ php artisan serve
// kupo should now have been started at http://localhost:8000/
```

## Install using Docker

```bash
docker run -d -p 8000:8000 phanan/kupo
// kupo should now have been started at http://localhost:8000/
```

## Extend

Depending on your needs, you may want to add more rules into kupo. In order to do so, just follow these certain steps:
Expand All @@ -52,5 +59,3 @@ If you feel like a certain rule should be added, please contribute! Just fork an
## License

MIT © [Phan An](http://phanan.net)