diff options
| -rw-r--r-- | Dockerfile.production | 2 | ||||
| -rw-r--r-- | README.md | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Dockerfile.production b/Dockerfile.production index b00f57d..f2b6457 100644 --- a/Dockerfile.production +++ b/Dockerfile.production | |||
| @@ -6,7 +6,7 @@ RUN npm install \ | |||
| 6 | && npm install --global postcss \ | 6 | && npm install --global postcss \ |
| 7 | && npm run build:css | 7 | && npm run build:css |
| 8 | # https://github.com/nginxinc/docker-nginx-unprivileged/blob/master/stable/buster/Dockerfile | 8 | # https://github.com/nginxinc/docker-nginx-unprivileged/blob/master/stable/buster/Dockerfile |
| 9 | From debian:buster-slim | 9 | From debian:bullseye-slim |
| 10 | 10 | ||
| 11 | LABEL maintainer="Mat-Web Co-Maintainer <jan.friedli@immerda.ch>" | 11 | LABEL maintainer="Mat-Web Co-Maintainer <jan.friedli@immerda.ch>" |
| 12 | 12 | ||
| @@ -125,9 +125,9 @@ Make sure you configured the necessary [environment variables](#configuration). | |||
| 125 | ### Building the production image using Docker | 125 | ### Building the production image using Docker |
| 126 | Build command: `docker build -f Dockerfile.production -t mat-web .` | 126 | Build command: `docker build -f Dockerfile.production -t mat-web .` |
| 127 | 127 | ||
| 128 | 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` | 128 | 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` |
| 129 | 129 | ||
| 130 | This does mount the upload folder as tmpfs and servers the app on `localhost:8181`. | 130 | This does mount the upload folder as tmpfs and server the app on `localhost:8181`. |
| 131 | 131 | ||
| 132 | ### Building the production image using Podman | 132 | ### Building the production image using Podman |
| 133 | Build: `podman build -f Dockerfile.production -t matweb-podman .` | 133 | Build: `podman build -f Dockerfile.production -t matweb-podman .` |
