From fdfa8a9a6da3336660227208727fb96a4cdd49a7 Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Thu, 22 Jan 2026 19:20:36 +0000 Subject: [PATCH] Move to static-web-server for native rootless --- .dockerignore | 4 +++- Dockerfile | 11 ++++++++--- dockercompose.yaml | 11 ----------- 3 files changed, 11 insertions(+), 15 deletions(-) delete mode 100644 dockercompose.yaml diff --git a/.dockerignore b/.dockerignore index f3cd543..b3ca53e 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,2 +1,4 @@ .git -git \ No newline at end of file +git +.gitea +README.md \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 853bf49..362d14c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,10 @@ -FROM nginx:latest +FROM joseluisq/static-web-server:2.40 +ENV SERVER_PORT=8080 +ENV SERVER_HOST=0.0.0.0 +ENV SERVER_ROOT=/public +ENV SERVER_LOG_LEVEL=info -COPY . /usr/share/nginx/html +COPY . /public -EXPOSE 80 \ No newline at end of file +USER 61919 +EXPOSE 8080 \ No newline at end of file diff --git a/dockercompose.yaml b/dockercompose.yaml deleted file mode 100644 index 8da5cbe..0000000 --- a/dockercompose.yaml +++ /dev/null @@ -1,11 +0,0 @@ -version: "3.8" - -services: - web: - image: git.fjla.uk/fred.boniface/scripts:latest - ports: - - "4321:80" - deploy: - replicas: 1 - restart_policy: - condition: on_failure \ No newline at end of file