-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
37 lines (30 loc) · 987 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# 5.0 tag used Debian 10 (Buster)
FROM mcr.microsoft.com/dotnet/sdk:5.0
# Build libgdiplus 6.0.5 with pango.
# Debian Buster uses version 1.42.4 of Pango which should be compatible with libgdiplus 6.0.5 (between 1.40.14 and 1.43).
RUN apt-get update && \
apt-get install -y --no-install-recommends \
libgif-dev \
autoconf \
libtool \
automake \
build-essential \
gettext \
libglib2.0-dev \
libcairo2-dev \
libtiff-dev \
libexif-dev \
libpango1.0-dev \
git \
ca-certificates
RUN git clone --depth 1 --branch 6.0.5 https://github.com/mono/libgdiplus.git
WORKDIR /libgdiplus
RUN ./autogen.sh --with-pango && make
RUN cp /libgdiplus/src/.libs/libgdiplus.so.0.0.0 /usr/local/lib
WORKDIR /usr/local/lib
RUN ln -s libgdiplus.so.0.0.0 libgdiplus.so && ln -s libgdiplus.so.0.0.0 libgdiplus.so.0 && ldconfig
WORKDIR /
COPY pango.csproj /pango/pango.csproj
COPY Program.cs /pango/Program.cs
WORKDIR /pango
ENTRYPOINT ["dotnet", "run"]