From 1406e00069b5f6bad70c95ed1a0b26059ca61358 Mon Sep 17 00:00:00 2001 From: Jan Friedli Date: Thu, 2 Apr 2020 23:19:50 +0200 Subject: added podman commands --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index dfa26b0..0abbf42 100644 --- a/README.md +++ b/README.md @@ -195,10 +195,15 @@ 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 /run/uwsgi --tmpfs=/app/uploads mat-web:latest` +Run it: `docker run -ti -p8181:8080 --read-only --tmpfs /tmp --tmpfs /run/uwsgi --tmpfs=/app/upload mat-web:latest` This does mount the upload folder as tmpfs and servers the app on `localhost:8181`. +##### Podman +Build: `podman build -f Dockerfile.production -t matweb-podman .` + +Run: `podman run -ti -p8181:8080 --read-only --tmpfs /tmp --tmpfs /run/uwsgi --tmpfs=/app/upload matweb-podman:latest` + # Configuration The default settings from `main.py` may be overridden by adding a `config.py` -- cgit v1.3