diff options
| author | Jan Friedli | 2020-04-12 16:08:52 +0200 |
|---|---|---|
| committer | Jan Friedli | 2020-05-09 21:25:46 +0200 |
| commit | 9bd985044ad8bd0612360bcaa9f4d871b6195985 (patch) | |
| tree | 737798e65a6957221cd1423fa705760b7c401b83 | |
| parent | 3d89015d6bb284a09614449c61a0e472bcf99167 (diff) | |
updated docker run
| -rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -195,7 +195,7 @@ repository: https://0xacab.org/jvoisin/mat2-web/container_registry | |||
| 195 | ### Building the production image | 195 | ### Building the production image |
| 196 | Build command: `docker build -f Dockerfile.production -t mat-web .` | 196 | Build command: `docker build -f Dockerfile.production -t mat-web .` |
| 197 | 197 | ||
| 198 | Run it: `docker run -ti -p8181:8080 --read-only --tmpfs /tmp --tmpfs /run/uwsgi --tmpfs=/app/upload mat-web:latest` | 198 | Run it: `docker run -ti -p8181:8080 --read-only --tmpfs /tmp --tmpfs /run/uwsgi --tmpfs=/app/upload --security-opt=no-new-privileges --security-opt=seccomp=./config/seccomp.json mat-web:latest` |
| 199 | 199 | ||
| 200 | This does mount the upload folder as tmpfs and servers the app on `localhost:8181`. | 200 | This does mount the upload folder as tmpfs and servers the app on `localhost:8181`. |
| 201 | 201 | ||
