-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
17b592b
commit 6dfc18f
Showing
4 changed files
with
67 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |