Add Dockerfile, docker-compose and Makefile in order to be able to use this as an isolated env

This commit is contained in:
Jose Angel Sanchez Castillejos 2019-05-28 22:05:49 -05:00 committed by Ben Letham
parent 0e0f1a607a
commit 95d203894d
4 changed files with 29 additions and 0 deletions

2
.gitignore vendored
View file

@ -15,3 +15,5 @@ build/
.ipynb_checkpoints
*.*~
*.idea

6
Dockerfile Normal file
View file

@ -0,0 +1,6 @@
FROM python:alpine3.7
WORKDIR /usr/src/app
RUN pip install -r python/requirements.txt

11
Makefile Normal file
View file

@ -0,0 +1,11 @@
build:
docker-compose build
py-shell:
docker-compose run package ipython
shell:
docker-compose run package bash
test:
docker-compose run package python -m unittest

10
docker-compose.yml Normal file
View file

@ -0,0 +1,10 @@
version: "3"
services:
package:
image: facebook/prophet
build:
context: .
dockerfile: Dockerfile
volumes:
- .:/usr/src/app