Build fix for ruamel.yaml.clib error.

This commit is contained in:
Dan Helfman 2022-02-08 12:52:45 -08:00
parent 46688f10b1
commit e3f4bf0293
2 changed files with 4 additions and 3 deletions

View file

@ -1,7 +1,8 @@
FROM python:3.8-alpine3.12 as borgmatic FROM python:3.8-alpine3.13 as borgmatic
COPY . /app COPY . /app
RUN pip install --no-cache ruamel.yaml.clib==0.2.6 /app && generate-borgmatic-config && chmod +r /etc/borgmatic/config.yaml RUN apk add --no-cache py3-ruamel.yaml.clib
RUN pip install --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 init prune create check extract export-tar mount umount restore list info borg; do \ && for action in init prune create check extract export-tar mount umount restore list info borg; do \
echo -e "\n--------------------------------------------------------------------------------\n" >> /command-line.txt \ echo -e "\n--------------------------------------------------------------------------------\n" >> /command-line.txt \

View file

@ -16,7 +16,7 @@ services:
MONGO_INITDB_ROOT_USERNAME: root MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: test MONGO_INITDB_ROOT_PASSWORD: test
tests: tests:
image: alpine:3.15 image: alpine:3.13
volumes: volumes:
- "../..:/app:ro" - "../..:/app:ro"
tmpfs: tmpfs: