Skip to content

Commit

Permalink
Added Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
DigitalPig committed Mar 22, 2020
1 parent 17b592b commit 6dfc18f
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 3 deletions.
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM heroku/miniconda

# COPY necessary files inside
ADD ./app /opt/app
WORKDIR /opt/app
COPY environment.yml /opt/app
COPY run.py /opt/app
COPY start.sh /opt/app

RUN conda env create -f environment.yml

CMD start.sh
50 changes: 50 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: smart_underwriter
channels:
- conda-forge
- defaults
dependencies:
- _libgcc_mutex=0.1
- _openmp_mutex=4.5
- blas=1.1
- bzip2=1.0.8
- ca-certificates=2019.11.28
- certifi=2018.8.24
- click=7.1.1
- dill=0.2.5
- flask=0.11.1
- flask-wtf=0.14.2
- gunicorn=19.3.0
- itsdangerous=1.1.0
- jinja2=2.8
- ld_impl_linux-64=2.34
- libffi=3.2.1
- libgcc-ng=9.2.0
- libgfortran=3.0.0
- libgomp=9.2.0
- libstdcxx-ng=9.2.0
- markupsafe=1.0
- ncurses=6.1
- numpy=1.10.4
- openblas=0.2.18
- openssl=1.0.2u
- pandas=0.18.1
- pip=20.0.2
- python=3.5.5
- python-dateutil=2.8.1
- pytz=2019.3
- readline=7.0
- requests=2.9.2
- scikit-learn=0.17.1
- scipy=0.17.1
- setuptools=40.4.3
- six=1.14.0
- sqlite=3.28.0
- tk=8.6.10
- werkzeug=0.12.2
- wheel=0.34.2
- wtforms=2.1
- xz=5.2.4
- zlib=1.2.11
- gunicorn
prefix: /home/digitalpig/.conda/envs/smart_underwriter

4 changes: 1 addition & 3 deletions run.py
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
from app import app
if __name__ == "__main__":
app.run(host='0.0.0.0', port=33507)
from app import app as application
4 changes: 4 additions & 0 deletions start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

source activate smart_underwriter
gunicorn --bind 0.0.0.0:$PORT run

0 comments on commit 6dfc18f

Please sign in to comment.