2019-02-23 18:44:29 +04:00
|
|
|
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.6
|
2019-02-09 19:42:36 +04:00
|
|
|
|
2019-02-23 18:44:29 +04:00
|
|
|
RUN pip install celery==4.2.1 passlib[bcrypt] tenacity requests pydantic emails "fastapi>=0.6.0" uvicorn gunicorn pyjwt python-multipart email_validator jinja2 psycopg2-binary alembic SQLAlchemy
|
2019-02-09 19:42:36 +04:00
|
|
|
|
|
|
|
# For development, Jupyter remote kernel, Hydrogen
|
|
|
|
# Using inside the container:
|
|
|
|
# jupyter notebook --ip=0.0.0.0 --allow-root
|
|
|
|
ARG env=prod
|
|
|
|
RUN bash -c "if [ $env == 'dev' ] ; then pip install jupyter ; fi"
|
|
|
|
EXPOSE 8888
|
|
|
|
|
|
|
|
COPY ./app /app
|
|
|
|
WORKDIR /app/
|
|
|
|
|
|
|
|
ENV PYTHONPATH=/app
|
|
|
|
|
|
|
|
EXPOSE 80
|