mirror of
https://0xacab.org/jvoisin/mat2-web.git
synced 2025-08-22 12:45:49 -04:00
tested if --security-opt=no-new-privileges works
This commit is contained in:
parent
e53ea9a051
commit
f8368c1b4d
1 changed files with 2 additions and 2 deletions
|
@ -205,9 +205,9 @@ repository: https://0xacab.org/jvoisin/mat2-web/container_registry
|
||||||
### Building the production image
|
### Building the production image
|
||||||
Build command: `docker build -f Dockerfile.production -t mat-web .`
|
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`
|
Run it: ` docker run -ti -p8181:8080 --security-opt=no-new-privileges --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`
|
This does mount the upload folder as tmpfs and servers the app on `localhost:8181`.
|
||||||
|
|
||||||
# Configuration
|
# Configuration
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue