Deployment

This commit is contained in:
2025-03-21 00:23:38 +03:00
parent 229a6bcc9e
commit 51d8600be0
3 changed files with 19 additions and 11 deletions

View File

@@ -1,9 +1,9 @@
FROM ubuntu:20.04
FROM ubuntu:18.04
# Installing dependencies
RUN apt update
RUN DEBIAN_FRONTEND=noninteractive apt install -y qtbase5-dev openssl libmbedtls-dev tesseract-ocr tesseract-ocr-rus libopencv-dev libzbar-dev qttools5-dev nlohmann-json3-dev libcurl4-openssl-dev libtesseract-dev libqrencode-dev
RUN DEBIAN_FRONTEND=noninteractive apt install -y qtbase5-dev openssl libmbedtls-dev tesseract-ocr tesseract-ocr-rus libopencv-dev libzbar-dev qttools5-dev nlohmann-json-dev libcurl4-openssl-dev libtesseract-dev libqrencode-dev
RUN DEBIAN_FRONTEND=noninteractive apt install -y wget git cmake make gcc g++ fuse
# For gcc 12
@@ -53,9 +53,10 @@ COPY settings ./settings
COPY scenes ./scenes
COPY net ./net
COPY translations ./translations
COPY http_server ./http_server
COPY utils ./utils
COPY ./*cpp ./*.h ./*.ui ./*.qrc CMakeLists.txt .
COPY ./*.h ./*cpp ./*.ui ./*.qrc CMakeLists.txt .
RUN mkdir build
WORKDIR /appimage/build
@@ -64,13 +65,13 @@ RUN cmake -DBUILD_TRANSLATIONS=on .. && make -j 8
WORKDIR /appimage/AppDir/usr/bin
RUN cp /appimage/build/checks-parser .
RUN cp /appimage/build/checks-parser
WORKDIR /appimage
RUN linuxdeployqt --appimage-extract-and-run AppDir/usr/bin/checks-parser -no-copy-copyright-files -appimage
RUN mkdir -p /appimage/output
RUN cp Checks_parser-x86_64.AppImage /appimage/output
RUN mkdir -p /output
RUN cp Checks_parser-x86_64.AppImage /output
ENTRYPOINT bash