-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.sh
More file actions
19 lines (18 loc) · 885 Bytes
/
run.sh
File metadata and controls
19 lines (18 loc) · 885 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
docker stop simple-docker-webapp
docker rm simple-docker-webapp
docker build -t simple-docker-webapp .
# DISCLAIMERS
# This app is not production fit, flask is only a dev server.
# In production the -u flag should specify an appropriate production user ID
# with scoped privileges.
# A restart policy is not specified here, but could be used. YMMV.
# Further considerations for web security / scalability, not exemplified here:
# - Load balancing (appliance or cloud), auto scaling
# - Reverse proxying / Defense-In-Depth / Application Firewalls
# - Container Limits (cgroups / disk quotas etc)
# - Automated container hygiene, log rotation, SIEM tools (splunk etc)
# - Credential vaults / Certificate provisioning / Auto-renewal
# - Caching / Edge services / Cloudflare / Fastly etc
#
docker run -d -p 11000:11000 --name simple-docker-webapp simple-docker-webapp