20 lines
581 B
Plaintext
20 lines
581 B
Plaintext
# vim:sts=4:sw=4
|
|
FROM python:3.9-slim-bullseye
|
|
|
|
RUN mkdir /build && \
|
|
apt update && apt install -y git && \
|
|
rm -rf /var/lib/apt/lists/* && \
|
|
cd /root && \
|
|
git clone https://git.libreitalia.org/libreitalia/loaih.git && \
|
|
cd loaih && git checkout dependencies && \
|
|
python3 -m venv venv && \
|
|
. venv/bin/activate && \
|
|
pip install build && \
|
|
python3 -m build && \
|
|
pip install dist/loaih*.whl && \
|
|
deactivate && \
|
|
ln -sf /root/loaih/venv/bin/loaih /usr/local/bin/loaih
|
|
WORKDIR /build
|
|
ENTRYPOINT [ "/usr/local/bin/loaih" ]
|
|
CMD [ "--help" ]
|