2019-04-16 19:36:38 +02:00
|
|
|
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.7
|
2019-02-09 19:42:36 +04:00
|
|
|
|
2020-04-06 11:36:29 +02:00
|
|
|
RUN pip install celery~=4.3 passlib[bcrypt] tenacity requests emails "fastapi>=0.47.0" "uvicorn>=0.11.1" gunicorn pyjwt python-multipart email_validator jinja2 psycopg2-binary alembic SQLAlchemy email_validator
|
2019-02-09 19:42:36 +04:00
|
|
|
|
|
|
|
# For development, Jupyter remote kernel, Hydrogen
|
|
|
|
# Using inside the container:
|
2019-04-24 22:45:20 +04:00
|
|
|
# jupyter lab --ip=0.0.0.0 --allow-root --NotebookApp.custom_display_url=http://127.0.0.1:8888
|
2019-02-09 19:42:36 +04:00
|
|
|
ARG env=prod
|
2019-04-24 22:45:20 +04:00
|
|
|
RUN bash -c "if [ $env == 'dev' ] ; then pip install jupyterlab ; fi"
|
2019-02-09 19:42:36 +04:00
|
|
|
EXPOSE 8888
|
|
|
|
|
|
|
|
COPY ./app /app
|
|
|
|
WORKDIR /app/
|
|
|
|
|
|
|
|
ENV PYTHONPATH=/app
|
|
|
|
|
|
|
|
EXPOSE 80
|