Created
July 16, 2016 04:36
-
-
Save vilmibm/177e5084c857891b1a4a47c97a6d6247 to your computer and use it in GitHub Desktop.
this just doesn't work at all
This file contains hidden or 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
FROM debian:testing | |
MAINTAINER nathanielksmith <[email protected]> | |
EXPOSE 8000 | |
RUN apt-get update | |
RUN apt-get -y install python3 python3-setuptools postgresql | |
RUN apt-get -y install ca-certificates build-essential | |
RUN apt-get -y install libffi-dev postgresql-server-dev-9.5 python3-dev | |
RUN service postgresql start | |
#RUN service postgresql status | |
RUN sleep 11 | |
RUN service postgresql status | |
RUN su postgres -c "psql -c \"create user prosaic with password 'prosaic'\"" | |
RUN su postgres -c "createdb prosaic -O prosaic" | |
RUN python3 -mpip install numpy==1.9.0 | |
ADD . /prosaicweb | |
WORKDIR /prosaicweb | |
# must be in python project dir, otherwise setuptools walks entire filesystem | |
RUN python3 setup.py install | |
RUN prosaicweb dbinit | |
CMD gunicorn prosaicweb:app |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
So, this seems to work, up until "prosaicweb dbinit", which dies with a traceback: