25 lines
728 B
Text
25 lines
728 B
Text
|
FROM nginx:alpine
|
||
|
|
||
|
ENV PORT="80"
|
||
|
COPY default.conf.env /etc/nginx/conf.d/default.conf.env
|
||
|
|
||
|
RUN apk add envsubst \
|
||
|
&& touch /docker-entrypoint.d/port.sh \
|
||
|
&& echo "exec envsubst < /etc/nginx/conf.d/default.conf.env > /etc/nginx/conf.d/default.conf && nginx -s reload" > /docker-entrypoint.d/port.sh \
|
||
|
&& chmod 776 /docker-entrypoint.d/port.sh
|
||
|
|
||
|
RUN apk add git \
|
||
|
&& apk add mkdocs \
|
||
|
&& apk add mkdocs-material \
|
||
|
&& apk add py3-regex
|
||
|
|
||
|
RUN mkdir /mkdocs
|
||
|
WORKDIR /mkdocs
|
||
|
|
||
|
COPY root /etc/crontabs/root
|
||
|
COPY git-mkdocs /bin/git-mkdocs
|
||
|
RUN chmod 744 /bin/git-mkdocs
|
||
|
|
||
|
RUN touch /docker-entrypoint.d/cron.sh \
|
||
|
&& echo "exec crond" > /docker-entrypoint.d/cron.sh \
|
||
|
&& chmod 776 /docker-entrypoint.d/cron.sh
|