From 7eb999c9edbd4d311a9c0faa1d0f746eb9f6f330 Mon Sep 17 00:00:00 2001 From: AlanMoonbase Date: Tue, 18 Mar 2025 17:01:57 -0700 Subject: [PATCH] docker might be deleting source code but who knows anymore --- src/Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Dockerfile b/src/Dockerfile index 9d00ca2..9097bf8 100644 --- a/src/Dockerfile +++ b/src/Dockerfile @@ -8,10 +8,6 @@ COPY . . # Restore dependencies and build the application RUN dotnet build -c Release -o /app -# move mods and assets directors from sources to /app -RUN mv src/mods /app && ln -s /app/mods src/ -RUN mv src/assets /app && ln -s /app/assets src/ - # install ef tools RUN dotnet tool install --global dotnet-ef --version 7.0.12 @@ -19,7 +15,11 @@ RUN dotnet tool install --global dotnet-ef --version 7.0.12 ENV PATH="${PATH}:/root/.dotnet/tools" # ensure database is in sync with migrations -RUN dotnet ef database update --project /src/sodoff.csproj +RUN dotnet ef database update --project sodoff.csproj + +# move mods and assets directors from sources to /app +RUN mv src/mods /app && ln -s /app/mods src/ +RUN mv src/assets /app && ln -s /app/assets src/ # Create clean run environment (without source and sdk) # FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base