-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathDockerfile
More file actions
18 lines (14 loc) · 763 Bytes
/
Dockerfile
File metadata and controls
18 lines (14 loc) · 763 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM nvidia/cuda:11.8.0-cudnn8-devel-ubuntu22.04
WORKDIR /workspaces/ocr-c++
ENV build_from_docker_file 1
# install generic tools
RUN apt update && apt -y dist-upgrade && \
DEBIAN_FRONTEND="noninteractive" apt install -y wget build-essential cmake \
gdb git git-lfs libssl-dev pkg-config unzip libopencv-dev python3-opencv
# download libtorch
RUN mkdir -p /workspaces/ocr-c++/thirdparty
RUN wget https://download.pytorch.org/libtorch/cu118/libtorch-cxx11-abi-shared-with-deps-2.1.1%2Bcu118.zip -O /workspaces/ocr-c++/thirdparty/libtorch.zip
RUN unzip /workspaces/ocr-c++/thirdparty/libtorch.zip -d /workspaces/ocr-c++/thirdparty/ && rm /workspaces/ocr-c++/thirdparty/libtorch.zip
# keep container running after start
ENTRYPOINT ["tail"]
CMD ["-f","/dev/null"]