comment
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Wolfgang Hottgenroth 2025-01-16 11:55:11 +01:00
parent 7241b82e58
commit 0eaeee06d6
Signed by: wn
GPG Key ID: 18FDFA577A8871AD

View File

@ -11,11 +11,14 @@ RUN if [ "$BASE_URL" = ""]; then hugo; else hugo -b $BASE_URL; fi
# server
FROM nginx:alpine
COPY --from=builder /src/public /usr/share/nginx/html
# ------------
# prepare for rootless operations
RUN \
chown -R nobody:nobody /var/cache/nginx /var/log/nginx && \
sed -i 's/listen\s\+80;/listen 8080;/' /etc/nginx/conf.d/default.conf && \
sed -i 's,pid\s\+/var/run/nginx.pid;,pid /tmp/nginx.pid;,' /etc/nginx/nginx.conf
USER nobody
# ------------
EXPOSE 8080