Skip to content
This repository has been archived by the owner on Sep 7, 2021. It is now read-only.

Commit

Permalink
adding docker-compose support
Browse files Browse the repository at this point in the history
closes #9
  • Loading branch information
Tomáš Kukrál committed Feb 10, 2016
1 parent 34e822c commit 3143622
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Dockerfile
@@ -0,0 +1,17 @@
FROM php:7-cli
MAINTAINER Tomáš Kukrál <kukratom@fit.cvut.cz>

ENV destdir /usr/src/app

RUN apt-get -y update && \
apt-get -y install git && \
apt-get -y clean

COPY . $destdir
WORKDIR $destdir

RUN curl -sS https://getcomposer.org/installer | php
RUN php composer.phar --no-interaction install

EXPOSE 80
CMD php bin/console server:run 0.0.0.0:80
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -85,6 +85,8 @@ bin/console d2s:run 'U Topolů' 'U Pětníka' 'Na Slamníku'
Fork the project and then make pull request to [``develop``](https://github.com/tomaskadlec/d2s/tree/develop) branch.
Or in case of bugfixes against the [``release``](https://github.com/tomaskadlec/d2s/releases) that should be fixed.

Testing server running in a container can be used to verify your code without hassle. You just need to run `docker-compose up` and wait for the server to start listening at http://127.0.0.1:8000. Happy coding!

## Extending the application

### Writing custom parsers
Expand Down
4 changes: 4 additions & 0 deletions docker-compose.yml
@@ -0,0 +1,4 @@
app:
build: .
ports:
- 127.0.0.1:8000:80

0 comments on commit 3143622

Please sign in to comment.