From c11e785549ae8bfe172f184d6199a2d295d39bde Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Tue, 10 Nov 2015 21:18:36 -0800 Subject: [PATCH] add Dockerfile --- .dockerignore | 1 + Dockerfile | 8 ++++++++ env.sh | 4 ++++ 3 files changed, 13 insertions(+) create mode 120000 .dockerignore create mode 100644 Dockerfile diff --git a/.dockerignore b/.dockerignore new file mode 120000 index 0000000..3e4e48b --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +.gitignore \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..3ee4927 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +FROM python:2 + +ADD . /h +WORKDIR /h +RUN ./env.sh + +ONBUILD ADD config /h/config +CMD ./run.sh diff --git a/env.sh b/env.sh index daf9cbc..70f9620 100755 --- a/env.sh +++ b/env.sh @@ -1,3 +1,7 @@ #!/bin/bash virtualenv env +. ./env/bin/activate + +pip install git+https://github.com/billpmurphy/hask +pip install -r requirements.txt