Skip to content
Snippets Groups Projects
Verified Commit 44c00bb5 authored by Louis's avatar Louis :fire:
Browse files

Use git due to submodules, switch to correct binary

parent 9ef838f8
No related branches found
No related tags found
No related merge requests found
Pipeline #111 passed with stage
in 1 minute and 43 seconds
FROM debian:11-slim as builder
FROM debian:11-slim
RUN apt-get update -yqq && \
apt-get upgrade -yqq && \
......@@ -7,26 +7,23 @@ RUN apt-get update -yqq && \
build-essential \
g++ \
ca-certificates \
wget \
unzip \
git \
libfreetype6-dev
WORKDIR /msdfgen
RUN mkdir src && \
mkdir bin && \
cd src && \
wget https://github.com/Chlumsky/msdfgen/archive/refs/tags/v1.9.2.zip && \
unzip "v1.9.2.zip"
WORKDIR /msdfgen/src/msdfgen-1.9.2
RUN git init && \
git remote add origin "https://github.com/Chlumsky/msdf-atlas-gen.git" && \
git fetch --depth 1 origin ae40bf4a3a0fd4a31ba278bacd1413a1da4d73cf && \
git checkout FETCH_HEAD && \
git submodule init && \
git submodule update --depth 1
RUN mkdir build && \
cd build && \
cmake .. && \
make
RUN cp build/msdfgen /msdfgen/bin && \
cp build/msdfgen /usr/bin
RUN cp build/msdf-atlas-gen /usr/bin/msdf-atlas-gen
ENTRYPOINT ["/bin/msdfgen"]
\ No newline at end of file
ENTRYPOINT [ "msdf-atlas-gen" ]
\ 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