-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
25 lines (18 loc) · 907 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
FROM microsoft/dotnet:2.1-sdk AS build-env
WORKDIR /app
COPY Haruna/ ./Haruna
RUN dotnet publish ./Haruna/Haruna.csproj -c Release -r debian-x64 -o ./Build
# RUN dotnet publish ./Haruna/Haruna.csproj -c Release -o /app/Build
FROM ubuntu:bionic
WORKDIR /app
COPY --from=build-env /app/Haruna/Build ./
RUN apt-get update && apt-get install curl liblttng-ust0 libssl1.0.0 libkrb5-3 zlib1g libicu60 libgdiplus libunwind8 icu-devtools tar -y
RUN curl -L --http1.1 http://download.icu-project.org/files/icu4c/62.1/icu4c-62_1-Ubuntu-18.04-x64.tgz --output icu.tgz \
&& tar -xf icu.tgz -C / \
&& export LD_LIBRARY_PATH=/usr/local/lib \
&& rm icu.tgz
# RUN apt-get install libgdiplus
# Uncomment the above line if your Haruna installation doesn't support libgdiplus.
# RUN apt-get -qq update && apt-get install -y libfontconfig1
# ENTRYPOINT [ "dotnet", "Haruna.dll" ]
ENTRYPOINT [ "./Haruna" ]