changes 4
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2025-12-19 10:46:22 +01:00
parent 79ad5900d8
commit 5b2034abba

View File

@@ -1,19 +1,18 @@
FROM nginx:alpine3.22
ARG RELEASE_TAG
COPY ./content /usr/share/nginx/html
RUN \
cd /usr/share/nginx/html && \
./snippet-indexer.sh && \
sed -i 's,%TAG%,'$RELEASE_TAG','g about.md
# ------------
# prepare for rootless operations
RUN \
sed -i 's,%TAG%,'${RELEASE_TAG}','g about.md && \
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/index index.html index.htm;/index mdwiki.html;/' /etc/nginx/conf.d/default.conf && \
sed -i 's,pid\s\+/run/nginx.pid;,pid /tmp/nginx.pid;,' /etc/nginx/nginx.conf
USER nobody
# ------------
EXPOSE 8080