python app.py --build to generate build-metadata.json

This is now run by the Dockerfile to build this at compile time.
This commit is contained in:
Simon Willison 2017-10-23 22:53:13 -07:00
commit 606ff9e35e
2 changed files with 6 additions and 1 deletions

View file

@ -2,5 +2,6 @@ FROM python:3
COPY . /app
WORKDIR /app
RUN pip install -r requirements.txt
RUN python app.py --build
EXPOSE 8006
CMD ["python", "app.py"]