build with nginx-unprivileged

This commit is contained in:
2025-12-22 22:03:14 +01:00
parent e4eade177e
commit 495f66fe2c
3 changed files with 12 additions and 2 deletions

View File

@@ -6,7 +6,7 @@ on:
image_tag: image_tag:
description: 'Tag für das Docker-Image z.B. v1.0.0 (latest wird immer mit gebaut)' description: 'Tag für das Docker-Image z.B. v1.0.0 (latest wird immer mit gebaut)'
required: true required: true
default: '1.0.1' default: '1.1.0'
env: env:
image_name: 404_games image_name: 404_games

View File

@@ -1,5 +1,7 @@
FROM nginx:stable-alpine-slim FROM nginxinc/nginx-unprivileged:stable-alpine-slim
LABEL authors="tebarius" LABEL authors="tebarius"
LABEL description="nginx_with_404_and_502_games" LABEL description="nginx_with_404_and_502_games"
COPY ./games /usr/share/nginx/html COPY ./games /usr/share/nginx/html
USER nginx

8
docker-compose.yml Normal file
View File

@@ -0,0 +1,8 @@
services:
404-dev:
image: nginxinc/nginx-unprivileged:stable-alpine-slim
volumes:
- ./games:/usr/share/nginx/html
restart: unless-stopped
ports:
- "8080:8080"