This commit is contained in:
@@ -1,12 +1,12 @@
|
|||||||
FROM nginx:alpine3.22
|
FROM nginx:alpine3.22
|
||||||
|
|
||||||
ARG RELEASE_TAG="default"
|
ARG RELEASETAG="default"
|
||||||
|
|
||||||
COPY ./content /usr/share/nginx/html
|
COPY ./content /usr/share/nginx/html
|
||||||
RUN \
|
RUN \
|
||||||
cd /usr/share/nginx/html && \
|
cd /usr/share/nginx/html && \
|
||||||
./snippet-indexer.sh && \
|
./snippet-indexer.sh && \
|
||||||
sed -i 's,%TAG%,'${RELEASE_TAG}','g about.md && \
|
sed -i 's,%TAG%,'${RELEASETAG}','g about.md && \
|
||||||
chown -R nobody:nobody /var/cache/nginx /var/log/nginx && \
|
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/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/index index.html index.htm;/index mdwiki.html;/' /etc/nginx/conf.d/default.conf && \
|
||||||
|
|||||||
Reference in New Issue
Block a user