From e53ea9a05167ac9b93594bb1335cae1f2a0afe1f Mon Sep 17 00:00:00 2001 From: Jan Friedli Date: Sat, 28 Mar 2020 15:17:45 +0100 Subject: use tmpfs for file storage --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 44ec789..16990a4 100644 --- a/README.md +++ b/README.md @@ -202,6 +202,13 @@ and `Dockerfile.production` is used for production deployments. You can find the automated docker builds in the registry of this repository: https://0xacab.org/jvoisin/mat2-web/container_registry +### Building the production image +Build command: `docker build -f Dockerfile.production -t mat-web .` + +Run it: ` docker run -ti -p8181:8080 --read-only --tmpfs /tmp --tmpfs=/var/www/mat2-web/uploads mat-web:latest` + +This does mount the upload folder as tmpfs and servers the app on `localhost:8181` + # Configuration The default settings from `main.py` may be overridden by adding a `config.py` -- cgit v1.3