forked from TheUltimateC0der/Deemixrr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (21 loc) · 782 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
FROM lsiobase/ubuntu:bionic AS base
WORKDIR /app
EXPOSE 5000
FROM mcr.microsoft.com/dotnet/sdk:5.0-buster-slim AS build
WORKDIR /src
COPY ["Deemixrr/", "Deemixrr/"]
RUN dotnet restore "Deemixrr/Deemixrr.csproj"
COPY . .
WORKDIR "/src/Deemixrr"
RUN dotnet build "Deemixrr.csproj" -c Release -o /app/build
FROM build AS publish
RUN dotnet publish "Deemixrr.csproj" -c Release -o /app/publish
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
RUN curl https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb --output packages-microsoft-prod.deb && \
dpkg -i packages-microsoft-prod.deb
RUN apt-get update && \
apt-get install -y python3 python3-pip apt-transport-https aspnetcore-runtime-5.0
COPY /etc /etc
ENTRYPOINT ["/init"]