|
|
|
|
@ -4,7 +4,7 @@ RUN apt-get update && apt-get install -y ca-certificates gnupg
@@ -4,7 +4,7 @@ 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 |
|
|
|
|
RUN apt-get update && apt-get install -y nodejs npm |
|
|
|
|
WORKDIR /source |
|
|
|
|
|
|
|
|
|
# copy csproj and restore as distinct layers |
|
|
|
|
@ -37,6 +37,7 @@ WORKDIR /source/ErsatzTV.Scanner
@@ -37,6 +37,7 @@ 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 |
|
|
|
|
RUN node --version |
|
|
|
|
RUN dotnet publish ErsatzTV.csproj -c release -o /app -r linux-x64 --self-contained false --no-restore /p:DebugType=Embedded /p:InformationalVersion=${INFO_VERSION} |
|
|
|
|
|
|
|
|
|
# final stage/image |
|
|
|
|
|