Docker II: Quick Airflow

Dockerfile
FROM python:3.7
RUN pip3 install 'apache-airflow' 
RUN airflow initdb 
CMD (airflow scheduler &) && airflow webserver 

Docker commands

# Start container
docker build . -t airflow
docker run -it -p 8080:8080 -v :/root/airflow airflow
# Save it go DockerHub
docker commit cxxxxxxxxx cadvga/airflow-version1
docker push cadvga/airflow-version1

https://hub.docker.com/repositories?ref=login