Dockerfile
FROM datahuborg/datahub-base:0.4
ADD requirements.txt /datahub/
WORKDIR /datahub
RUN pip install -r requirements.txt
EXPOSE 8000
ENV PYTHONPATH "/datahub/src:/datahub/src/gen-py:/datahub/src/apps"
ADD . /datahub/
RUN /bin/bash -c "source src/setup.sh"
# Should use an entrypoint script to run this command
RUN python src/manage.py collectstatic --noinput
ADD provisions/docker/test_container_fake_history /root/.bash_history
# Volumes must be declared after changes to their contents or docker ignores
# those changes.
VOLUME /var/log/gunicorn
VOLUME /static
CMD ["/datahub/src/scripts/start-app.sh"]