Files
minimal-setups/Dockerfile
Wolfgang Hottgenroth f483a7682e
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
fix
2025-04-18 10:13:22 +02:00

19 lines
529 B
Docker

FROM nginx:alpine3.21
COPY ./content /usr/share/nginx/html
RUN cd /usr/share/nginx/html && ./snippet-indexer.sh
# ------------
# 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/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