From 48d024e7512200cb353884cd84df6ed4c3aaa460 Mon Sep 17 00:00:00 2001 From: simon987 Date: Sat, 13 Nov 2021 17:36:30 -0500 Subject: [PATCH] Update dockerfiles --- Dockerfile | 10 ++++------ Dockerfile.arm64 | 10 +++++----- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5f2ef3b..832da17 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,12 +6,10 @@ COPY . . RUN cmake -DSIST_PLATFORM=x64_linux -DSIST_DEBUG=off -DBUILD_TESTS=off -DCMAKE_TOOLCHAIN_FILE=/vcpkg/scripts/buildsystems/vcpkg.cmake . RUN make -j$(nproc) RUN strip sist2 -RUN ls -lh -RUN ls -lh sist2-vue/dist/ -FROM ubuntu:20.10 +FROM ubuntu:21.10 -RUN apt update && apt install -y curl libasan5 +RUN apt update && apt install -y curl libasan5 && rm -rf /var/lib/apt/lists/* RUN mkdir -p /usr/share/tessdata && \ cd /usr/share/tessdata/ && \ @@ -22,9 +20,9 @@ RUN mkdir -p /usr/share/tessdata && \ curl -o /usr/share/tessdata/rus.traineddata https://raw.githubusercontent.com/tesseract-ocr/tessdata/master/rus.traineddata &&\ curl -o /usr/share/tessdata/spa.traineddata https://raw.githubusercontent.com/tesseract-ocr/tessdata/master/spa.traineddata -COPY --from=build /build/sist2 /root/sist2 +ENTRYPOINT ["/root/sist2"] ENV LANG C.UTF-8 ENV LC_ALL C.UTF-8 -ENTRYPOINT ["/root/sist2"] +COPY --from=build /build/sist2 /root/sist2 diff --git a/Dockerfile.arm64 b/Dockerfile.arm64 index 74754a6..26dd5af 100644 --- a/Dockerfile.arm64 +++ b/Dockerfile.arm64 @@ -7,9 +7,9 @@ RUN cmake -DSIST_PLATFORM=arm64_linux -DSIST_DEBUG=off -DBUILD_TESTS=off -DCMAKE RUN make -j$(nproc) RUN strip sist2 -FROM ubuntu:20.10 +FROM --platform linux/arm64/v8 ubuntu:21.10 -RUN apt update && apt install -y curl libasan5 +RUN apt update && apt install -y curl libasan5 && rm -rf /var/lib/apt/lists/* RUN mkdir -p /usr/share/tessdata && \ cd /usr/share/tessdata/ && \ @@ -20,9 +20,9 @@ RUN mkdir -p /usr/share/tessdata && \ curl -o /usr/share/tessdata/rus.traineddata https://raw.githubusercontent.com/tesseract-ocr/tessdata/master/rus.traineddata &&\ curl -o /usr/share/tessdata/spa.traineddata https://raw.githubusercontent.com/tesseract-ocr/tessdata/master/spa.traineddata -COPY --from=build /build/sist2 /root/sist2 - ENV LANG C.UTF-8 ENV LC_ALL C.UTF-8 -ENTRYPOINT ["/root/sist2"] \ No newline at end of file +ENTRYPOINT ["/root/sist2"] + +COPY --from=build /build/sist2 /root/sist2 \ No newline at end of file