-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
34 lines (25 loc) · 1.01 KB
/
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
FROM microsoft/dotnet AS base
ENV DOTNET_SKIP_FIRST_TIME_EXPERIENCE true
WORKDIR /app
EXPOSE 5000
# install libgdiplus for System.Drawing, wget for downloading font, unzip to unzip font, as well as, libunwind.
RUN apt-get update && \
apt-get install -y --allow-unauthenticated libgdiplus libc6-dev wget unzip libunwind8
# install x11 for System.Drawing
RUN apt-get update && \
apt-get install -y --allow-unauthenticated libx11-dev
RUN wget https://github.com/RedHatBrand/Overpass/releases/download/3.0.2/overpass-desktop-fonts.zip
RUN unzip overpass-desktop-fonts.zip -d /usr/share/fonts/
FROM microsoft/dotnet:2.1-sdk AS build
WORKDIR /src
COPY lolresearchbot.csproj ./
COPY . .
RUN dotnet build -c Release -o /app
FROM build AS publish
RUN dotnet publish lolresearchbot.csproj -c Release -r ubuntu-x64 -o /app
FROM base AS final
WORKDIR /app
COPY --from=publish /app .
ENTRYPOINT /app/lolresearchbot
VOLUME [ "/data" ]
COPY _configuration_EXAMPLE.json /data/_configuration.json