fixed BUG-26 (saving with a series), and added a bookdb_webdev container that maps ~/src/pybook to /pybook_mapped_volume. Then start a single threaded, reloading, output capturing gunicorn via wraper.sh if in DEV, otherwise normal gunicorn if in PROD - gives me an idnentical dev in a container to prod.
This commit is contained in:
@@ -19,5 +19,6 @@ RUN apt-get update && apt-get -y install python3-pip python3-psycopg2 libpq-dev
|
||||
COPY requirements.txt requirements.txt
|
||||
RUN pip3 install -r requirements.txt
|
||||
EXPOSE 443
|
||||
EXPOSE 5000
|
||||
COPY . .
|
||||
CMD gunicorn --bind=0.0.0.0:443 --workers=2 --threads=2 --certfile /etc/letsencrypt/live/book.depaoli.id.au/fullchain.pem --keyfile /etc/letsencrypt/live/book.depaoli.id.au/privkey.pem main:app --env FLASK_ENV="production" --error-logfile gunicorn.error.log --access-logfile gunicorn.log --capture-output
|
||||
CMD ["./wrapper.sh"]
|
||||
|
||||
Reference in New Issue
Block a user