forked from mtusi2026/mtusi2026lab2
15 lines
359 B
Docker
15 lines
359 B
Docker
FROM python:3.13.15-slim
|
|
|
|
WORKDIR /tests
|
|
COPY requirements-dev.txt .
|
|
RUN python -m pip install --no-cache-dir -r requirements-dev.txt \
|
|
&& useradd --uid 10001 --user-group --no-create-home --shell /usr/sbin/nologin tests
|
|
|
|
COPY lab.json .
|
|
COPY contracts ./contracts
|
|
COPY tests ./tests
|
|
RUN chown -R tests:tests /tests
|
|
|
|
USER 10001:10001
|
|
CMD ["pytest", "-q"]
|