2024-11-22 23:26:42 +03:00
|
|
|
FROM archlinux
|
|
|
|
|
|
|
|
#Update
|
|
|
|
RUN pacman --noconfirm -Sy
|
|
|
|
|
|
|
|
#Build dependencies
|
2024-12-09 16:27:30 +03:00
|
|
|
RUN pacman --noconfirm -S sudo cmake git coreutils base-devel qt5-base
|
2024-11-22 23:26:42 +03:00
|
|
|
|
|
|
|
RUN echo "MAKEFLAGS=\"-j${nproc}\"" >> /etc/makepkg.conf
|
|
|
|
|
|
|
|
RUN useradd -ms /bin/bash checks-parser
|
|
|
|
RUN usermod -a -G wheel checks-parser
|
|
|
|
|
|
|
|
RUN echo "checks-parser ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
|
|
|
|
USER checks-parser
|
|
|
|
WORKDIR /home/checks-parser
|
|
|
|
|
|
|
|
#Dependencies from sources
|
|
|
|
RUN git clone https://aur.archlinux.org/yay.git && \
|
|
|
|
cd yay && \
|
|
|
|
makepkg -si --noconfirm && \
|
|
|
|
cd .. && sudo rm -rf yay
|
|
|
|
|
2024-12-09 16:27:30 +03:00
|
|
|
RUN yay -S opencv zbar nlohmann-json tesseract tesseract-data-rus
|
2024-11-22 23:26:42 +03:00
|
|
|
|
|
|
|
#building
|
|
|
|
WORKDIR /home/checks-parser
|
|
|
|
RUN git clone https://git.foxarmy.org/leca/checks-parser && \
|
|
|
|
cd checks-parser && \
|
2024-12-09 16:27:30 +03:00
|
|
|
cmake . && \
|
2024-11-22 23:26:42 +03:00
|
|
|
make -j ${nproc} && \
|
|
|
|
sudo make install
|
|
|
|
|
|
|
|
ENTRYPOINT ["checks-parser"]
|