Merge pull request 'Refactored dockerfile' (#3) from styling into master
Reviewed-on: #3
This commit was merged in pull request #3.
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@ FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY ["nuget.config", "./"]
|
COPY ["nuget.config", "./"]
|
||||||
COPY ["ShopAdmin/ShopAdmin.csproj", "Shop/"]
|
COPY ["ShopAdmin/ShopAdmin.csproj", "ShopAdmin/"]
|
||||||
RUN dotnet restore "ShopAdmin/ShopAdmin.csproj" --configfile nuget.config
|
RUN dotnet restore "ShopAdmin/ShopAdmin.csproj" --configfile nuget.config
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN dotnet publish "ShopAdmin/ShopAdmin.csproj" -c Release -o /app/publish /p:UseAppHost=false
|
RUN dotnet publish "ShopAdmin/ShopAdmin.csproj" -c Release -o /app/publish /p:UseAppHost=false
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
<Solution>
|
<Solution>
|
||||||
|
<Folder Name="/Solution Items/">
|
||||||
|
<File Path=".drone.yml" />
|
||||||
|
<File Path=".editorconfig" />
|
||||||
|
<File Path="Dockerfile" />
|
||||||
|
<File Path="litecharms-shopadmin-uat.yml" />
|
||||||
|
</Folder>
|
||||||
<Project Path="ShopAdmin/ShopAdmin.csproj" />
|
<Project Path="ShopAdmin/ShopAdmin.csproj" />
|
||||||
</Solution>
|
</Solution>
|
||||||
|
|||||||
Reference in New Issue
Block a user