Skip to content

Commit

Permalink
Dockerize for dev purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
sbellem committed Mar 23, 2016
1 parent cebd855 commit 9d40a4a
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.eggs
.git
.ropeproject
.editorconfig
.gitignore
Dockerfile
LICENSES.md
README.md
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM python:2.7

RUN apt-get update && apt-get install -y libblas-dev liblapack-dev gfortran

RUN pip install --upgrade pip
RUN pip install numpy scipy

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

COPY image_match /usr/src/app/image_match
COPY setup.py /usr/src/app/setup.py

RUN pip install --no-cache-dir -e .[dev]
9 changes: 9 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: '2'

services:
image-match:
build: .
volumes:
- .:/usr/src/app/
elasticsearch:
image: elasticsearch

0 comments on commit 9d40a4a

Please sign in to comment.