Revamped build process

This commit is contained in:
2024-06-03 12:27:43 +00:00
parent b9f4dee100
commit 4a15a0d63b
10 changed files with 355 additions and 188 deletions
+11
View File
@@ -0,0 +1,11 @@
# retrieve the base image (default to latest).
ARG BASE_IMAGE="nginx:alpine"
FROM ${BASE_IMAGE}
LABEL org.opencontainers.image.authors="Belman Kraul <bkraul@gmail.com>"
COPY conf/nginx.conf /etc/nginx/nginx.conf
RUN set -x ; \
addgroup -g 82 -S www-data ; \
adduser -u 82 -D -S -G www-data www-data && exit 0 ; exit 1
@@ -0,0 +1,14 @@
# retrieve the base image (default to latest).
ARG BASE_IMAGE="nginx:mainline-bookworm"
FROM ${BASE_IMAGE}
LABEL org.opencontainers.image.authors="Belman Kraul <bkraul@gmail.com>"
COPY conf/nginx.conf /etc/nginx/nginx.conf
RUN set -x ; \
usermod -u 82 www-data; \
groupmod -g 82 www-data && exit 0; exit 1
#addgroup -g 82 -S www-data ; \
#adduser -u 82 -D -S -G www-data www-data && exit 0 ; exit 1