|
@@ -1,14 +1,15 @@
|
|
-FROM docker.io/alpine:3.17.1 as borgmatic
|
|
|
|
|
|
+FROM docker.io/alpine:3.20.1 AS borgmatic
|
|
|
|
|
|
COPY . /app
|
|
COPY . /app
|
|
-RUN apk add --no-cache py3-pip py3-ruamel.yaml py3-ruamel.yaml.clib
|
|
|
|
-RUN pip install --no-cache /app && generate-borgmatic-config && chmod +r /etc/borgmatic/config.yaml
|
|
|
|
|
|
+RUN apk add --no-cache py3-pip py3-requests py3-ruamel.yaml py3-ruamel.yaml.clib
|
|
|
|
+RUN pip install --break-system-packages --no-cache /app && generate-borgmatic-config && chmod +r /etc/borgmatic/config.yaml
|
|
RUN borgmatic --help > /command-line.txt \
|
|
RUN borgmatic --help > /command-line.txt \
|
|
&& for action in rcreate transfer create prune compact check delete extract config "config bootstrap" "config generate" "config validate" export-tar mount umount rdelete restore rlist list rinfo info break-lock borg; do \
|
|
&& for action in rcreate transfer create prune compact check delete extract config "config bootstrap" "config generate" "config validate" export-tar mount umount rdelete restore rlist list rinfo info break-lock borg; do \
|
|
echo -e "\n--------------------------------------------------------------------------------\n" >> /command-line.txt \
|
|
echo -e "\n--------------------------------------------------------------------------------\n" >> /command-line.txt \
|
|
&& borgmatic $action --help >> /command-line.txt; done
|
|
&& borgmatic $action --help >> /command-line.txt; done
|
|
|
|
+RUN /app/docs/fetch-contributors >> /contributors.html
|
|
|
|
|
|
-FROM docker.io/node:19.5.0-alpine as html
|
|
|
|
|
|
+FROM docker.io/node:22.4.0-alpine AS html
|
|
|
|
|
|
ARG ENVIRONMENT=production
|
|
ARG ENVIRONMENT=production
|
|
|
|
|
|
@@ -24,11 +25,12 @@ RUN npm install @11ty/eleventy \
|
|
markdown-it-replace-link
|
|
markdown-it-replace-link
|
|
COPY --from=borgmatic /etc/borgmatic/config.yaml /source/docs/_includes/borgmatic/config.yaml
|
|
COPY --from=borgmatic /etc/borgmatic/config.yaml /source/docs/_includes/borgmatic/config.yaml
|
|
COPY --from=borgmatic /command-line.txt /source/docs/_includes/borgmatic/command-line.txt
|
|
COPY --from=borgmatic /command-line.txt /source/docs/_includes/borgmatic/command-line.txt
|
|
|
|
+COPY --from=borgmatic /contributors.html /source/docs/_includes/borgmatic/contributors.html
|
|
COPY . /source
|
|
COPY . /source
|
|
RUN NODE_ENV=${ENVIRONMENT} npx eleventy --input=/source/docs --output=/output/docs \
|
|
RUN NODE_ENV=${ENVIRONMENT} npx eleventy --input=/source/docs --output=/output/docs \
|
|
&& mv /output/docs/index.html /output/index.html
|
|
&& mv /output/docs/index.html /output/index.html
|
|
|
|
|
|
-FROM docker.io/nginx:1.22.1-alpine
|
|
|
|
|
|
+FROM docker.io/nginx:1.26.1-alpine
|
|
|
|
|
|
COPY --from=html /output /usr/share/nginx/html
|
|
COPY --from=html /output /usr/share/nginx/html
|
|
COPY --from=borgmatic /etc/borgmatic/config.yaml /usr/share/nginx/html/docs/reference/config.yaml
|
|
COPY --from=borgmatic /etc/borgmatic/config.yaml /usr/share/nginx/html/docs/reference/config.yaml
|