Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 18 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
FROM python:3.11
RUN useradd --user-group bagit-tester
RUN install -d -o bagit-tester /bagit
USER bagit-tester
FROM ghcr.io/astral-sh/uv:0.11.5-python3.14-trixie
RUN useradd --user-group bagit-tester && \
install -d -o bagit-tester /bagit
WORKDIR /bagit
COPY pyproject.toml /bagit/pyproject.toml
COPY .git/ /bagit/.git/
COPY *.rst *.py /bagit/
COPY *.rst /bagit/
COPY src/ /bagit/src/
COPY test.py /bagit/
COPY test-data /bagit/test-data/
CMD [ "python", "setup.py", "test" ]
COPY utils/ /bagit/
ENV UV_LINK_MODE=copy
RUN mkdir /home/bagit-tester/ && \
mkdir /home/bagit-tester/.cache && \
mkdir /home/bagit-tester/.cache/uv && \
apt-get update && \
apt-get install dos2unix -y && \
find test-data -name 'README' | xargs dos2unix && \
chown bagit-tester /home/bagit-tester/.cache/uv
USER bagit-tester
CMD [ "uv", "run", "pytest" ]
Loading