Skip to content

Commit

Permalink
fix Dockerfile (#179): copy ppocr and remove submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanpoelen committed Jan 9, 2025
1 parent 079542a commit 33d4638
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM ubuntu:latest
# Install build dependencies
RUN apt-get -qq update && apt-get install -y g++ libboost-tools-dev libssl-dev libkrb5-dev \
libgssglue-dev libsnappy-dev libpng-dev libbz2-dev libhyperscan-dev git python3 gettext
libgssglue-dev libsnappy-dev libpng-dev libbz2-dev libhyperscan-dev python3 gettext
# Create build directory
RUN mkdir -p /gcc/
# Set container working directory
Expand All @@ -10,15 +10,12 @@ WORKDIR /gcc/
COPY Jamroot targets.jam /gcc/
COPY jam /gcc/jam
COPY projects/ocr1 /gcc/projects/ocr1
COPY projects/ppocr /gcc/projects/ppocr
COPY projects/redemption_configs /gcc/projects/redemption_configs
COPY tools/i18n /gcc/tools/i18n
COPY src /gcc/src
COPY include /gcc/include
COPY sys /gcc/sys
# Clone ppocr repository; could be replaced with `git submodule update --init` but
# if this runs from another git repository (a fork for example) the owner of the
# fork must ensure they also fork ppocr and make sure that ../ppocr leads to the proper git repository
RUN mkdir -p modules && cd modules && git clone https://github.com/wallix/ppocr.git ppocr
# Build and install rdpproxy
RUN bjam linkflags=-static-libstdc++ variant=release -q --toolset=gcc \
cxxflags='-DREDEMPTION_DISABLE_NO_BOOST_PREPROCESSOR_WARNING' cxx-lto=on \
Expand Down

0 comments on commit 33d4638

Please sign in to comment.