FROM python:3.12-slim
RUN apt-get update && apt-get install -y --no-install-recommends curl git ca-certificates && rm -rf /var/lib/apt/lists/*
COPY requirements.txt /tmp/requirements.txt
RUN pip install --no-cache-dir --require-hashes -r /tmp/requirements.txt
LABEL life.symbolic.input-digest="d98ccc4dcc038e1f7824fa53738a9dc63f2d4f2be962e974246bdc391f56c0d8"
COPY bundle /root/task
ENV OPENBLAS_NUM_THREADS=1 OMP_NUM_THREADS=1
RUN mkdir -p /root/results
WORKDIR /root

RUN python -c 'import hashlib,pathlib; expected={'"'"'/root/task/README.md'"'"': '"'"'5323a517616969d6028bb8db49e0c20a4411bea7fb2cc6a9d51212f09b8715fc'"'"', '"'"'/root/task/check_answer.py'"'"': '"'"'268a47121d570ff2160f04adcbc531c3cbf994a88aab377365338b389980e838'"'"', '"'"'/root/task/context.md'"'"': '"'"'0307c27dbfbe6fe652ee5c90ab92725a5105ef261bbacbb102189f6a9ed5772d'"'"', '"'"'/root/task/healthy_characterization.json'"'"': '"'"'4f6889ccf3011960fd17b8a337d87e2feaf130baadb45baa3f88066abd2e3eda'"'"', '"'"'/root/task/lab_api.md'"'"': '"'"'5fbe2bd90f0af950ce0daafa8a569840cb9a2d6b5cb583e175d5c5fee8814e76'"'"', '"'"'/root/task/methods.md'"'"': '"'"'a0d86bb2f0c5de9efd7972df8155f0fa29b08a42f97ad1c37b27bec8751210db'"'"', '"'"'/root/task/signor_sources.tsv.gz'"'"': '"'"'c9a7b758275fcfcd34f552c4a8486eb4a5cc4dee39a6f184a744f4c8613adab5'"'"', '"'"'/root/task/sources.json'"'"': '"'"'08ef80d2f332024c08d97fa6f1f27a682ea905830c657fbe1585719d1913643b'"'"', '"'"'/root/task/submission_contract.md'"'"': '"'"'8c892c344d2c5196e6db142f57551b529dee8ac77b97f66e15b5916a2827a7c9'"'"', '"'"'/root/task/task.json'"'"': '"'"'19f83b122c9231067fc28639c7353e099f9f6af329f9e6889e1eefc61ea778da'"'"'}; actual={p:hashlib.sha256(pathlib.Path(p).read_bytes()).hexdigest() for p in expected}; assert actual==expected, {p:actual.get(p) for p,h in expected.items() if actual.get(p)!=h}'
