Skip to content

Commit

Permalink
Add Dockerfile and docker-compose.yml for dev
Browse files Browse the repository at this point in the history
  • Loading branch information
sbellem committed Jun 19, 2017
1 parent 88c7fae commit 5604b47
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Dockerfile
@@ -0,0 +1,12 @@
FROM python:3

RUN apt-get update && apt-get install -y vim

RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

RUN pip install --upgrade pip

COPY . /usr/src/app/

RUN pip install --no-cache-dir -e .[dev]
28 changes: 28 additions & 0 deletions docker-compose.yml
@@ -0,0 +1,28 @@
version: '2'

services:
cryptoconditions:
build:
context: .
volumes:
- ./docs:/usr/src/app/docs
- ./tests:/usr/src/app/tests
- ./cryptoconditions:/usr/src/app/cryptoconditions
- ./examples:/usr/src/app/examples
- ./setup.py:/usr/src/app/setup.py
- ./.coveragerc:/usr/src/app/.coveragerc
command: pytest -v

bdocs:
build:
context: .
volumes:
- .:/usr/src/app/
command: make -C docs html

vdocs:
image: nginx
ports:
- '80'
volumes:
- ./docs/_build/html:/usr/share/nginx/html

0 comments on commit 5604b47

Please sign in to comment.