Skip to content
Snippets Groups Projects
Commit 83db5c8d authored by derneuere's avatar derneuere
Browse files

Add new dockerfile for compiling dlib

parent 3194dbe8
No related branches found
No related tags found
No related merge requests found
FROM ubuntu:hirsute
ARG TARGETPLATFORM
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -y --no-install-recommends \
build-essential \
zip \
git && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN pip3 install cmake==3.21.2
# Build and install dlib
WORKDIR /tmp/builds
RUN git clone --depth 1 --branch 'v19.22' https://github.com/davisking/dlib.git && \
mkdir dlib/build && \
cd dlib/build && \
cmake .. -DDLIB_USE_CUDA=0 -DUSE_AVX_INSTRUCTIONS=0 -DLIB_NO_GUI_SUPPORT=0 && \
cmake --build . && \
zip -r dlib.zip dlib \
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment