FROM git.aridgwayweb.com/armistace/beer_base_image AS flask COPY requirements.txt . ADD src /beer_data/src # The app lives in src/flask and imports its siblings by bare name # (``import brewing``), so that directory is the working directory. WORKDIR /beer_data/src/flask # The app is served by waitress, not the Flask development server. # FLASK_DEBUG stays OFF: the old entrypoint ran the Werkzeug debugger in # production, which exposes an interactive console on any unhandled error. ENV FLASK_ENV=production ENV FLASK_DEBUG=0 ENV PORT=5000 # SECRET_KEY is supplied by the deployment (see RUNBOOK.md). The default here # is only a placeholder so the container starts if it is missing. ENV SECRET_KEY=change-me-in-the-deployment EXPOSE 5000 ENTRYPOINT ["python", "-m", "waitress", "--listen=0.0.0.0:5000", "--call", "beer_data:create_app"]