documentation (wip)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
810 B

FROM AS hugobuild
COPY . /docs
RUN git submodule init \
&& git submodule update --recursive \
&& hugo version \
&& hugo --minify --gc=true
# COPY --from=hugobuild /home/$(whoami)/public/ /usr/share/nginx/html
COPY --from=hugobuild /docs/public/ /usr/share/nginx/html
# tripple slash reference
RUN sed -i -e 's/^worker_processes auto;/worker_processes auto;/'\
-e "/^events {$/ a \\\tmulti_accept on;\n\tuse epoll;"\
-e "/^http {$/ a \\\tserver_tokens off;\n\tetag off;\n"\
-e 's/#tcp_nopush/tcp_nopush/'\
-e "/tcp_nopush/ a \\\ttcp_nodelay on;"\
-e "s/^ */$(printf '\t')/"\