From a816f99118563da15047796e458be822a5bd1219 Mon Sep 17 00:00:00 2001 From: henrik Date: Fri, 13 Dec 2024 18:17:18 +0100 Subject: [PATCH] Include .git --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 454e524..8dd963f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,7 @@ FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS base USER $APP_UID WORKDIR /app +EXPOSE 8080 FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build ARG BUILD_CONFIGURATION=Release @@ -12,10 +13,10 @@ COPY ["Pushy/Pushy/Pushy.csproj", "Pushy/Pushy/"] COPY ["Pushy/Pushy.Client/Pushy.Client.csproj", "Pushy/Pushy.Client/"] COPY ["Pushy.Silo/Pushy.Silo.csproj", "Pushy.Silo/"] +COPY .git . RUN dotnet restore "Pushy.Silo/Pushy.Silo.csproj" RUN dotnet restore "Pushy/Pushy/Pushy.csproj" -COPY . . WORKDIR "/src/Pushy.Silo" RUN dotnet build "Pushy.Silo.csproj" -c $BUILD_CONFIGURATION -o /app/silo