FROM python:3.7.5-slim-buster MAINTAINER Nick Janetakis RUN apt-get update && apt-get install -qq -y \ build-essential libpq-dev --no-install-recommends ENV INSTALL_PATH /snakeeyes RUN mkdir -p $INSTALL_PATH WORKDIR $INSTALL_PATH COPY requirements.txt requirements.txt RUN pip install -r requirements.txt COPY . . RUN pip install --editable . CMD gunicorn -c "python:config.gunicorn" "snakeeyes.app:create_app()"