|
|
|
@ -1,8 +1,10 @@
@@ -1,8 +1,10 @@
|
|
|
|
|
# https://hub.docker.com/_/microsoft-dotnet |
|
|
|
|
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build |
|
|
|
|
RUN apt-get update && apt-get install -y ca-certificates |
|
|
|
|
RUN curl -fsSL https://deb.nodesource.com/setup_14.x | bash - |
|
|
|
|
RUN apt-get install -y nodejs |
|
|
|
|
RUN apt-get update && apt-get install -y ca-certificates gnupg |
|
|
|
|
RUN mkdir -p /etc/apt/keyrings |
|
|
|
|
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg |
|
|
|
|
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list |
|
|
|
|
RUN apt-get update && apt-get install -y nodejs |
|
|
|
|
WORKDIR /source |
|
|
|
|
|
|
|
|
|
# copy csproj and restore as distinct layers |
|
|
|
@ -30,8 +32,8 @@ COPY ErsatzTV.Infrastructure/. ./ErsatzTV.Infrastructure/
@@ -30,8 +32,8 @@ COPY ErsatzTV.Infrastructure/. ./ErsatzTV.Infrastructure/
|
|
|
|
|
COPY ErsatzTV.Infrastructure.Sqlite/. ./ErsatzTV.Infrastructure.Sqlite/ |
|
|
|
|
COPY ErsatzTV.Infrastructure.MySql/. ./ErsatzTV.Infrastructure.MySql/ |
|
|
|
|
COPY ErsatzTV.Scanner/. ./ErsatzTV.Scanner/ |
|
|
|
|
WORKDIR /source/ErsatzTV.Scanner |
|
|
|
|
ARG INFO_VERSION="unknown" |
|
|
|
|
WORKDIR /source/ErsatzTV.Scanner |
|
|
|
|
RUN dotnet publish ErsatzTV.Scanner.csproj -c release -o /app -r linux-x64 --self-contained false --no-restore /p:DebugType=Embedded /p:InformationalVersion=${INFO_VERSION} |
|
|
|
|
WORKDIR /source/ErsatzTV |
|
|
|
|
RUN sed -i '/Scanner/d' ErsatzTV.csproj |
|
|
|
|