Add entrypoint, modify Dockerfile: Overwrite volume files

This commit is contained in:
Konstantin Hintermayer 2025-05-30 17:40:18 +02:00
parent b3b39f583a
commit 7a9941fe66
2 changed files with 13 additions and 3 deletions

View File

@ -17,8 +17,11 @@ RUN dotnet publish "Oqtane.Server/Oqtane.Server.csproj" -c Release -o /source/pu
# Deploy
FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS deploy
WORKDIR /app
WORKDIR /codefiles
COPY --from=publish /source/publish/ /codefiles/
COPY --from=publish /source/publish/ /app/
ENTRYPOINT ["dotnet", "Oqtane.Server.dll"]
COPY entrypoint.sh .
RUN chmod +x entrypoint.sh
ENTRYPOINT ["./entrypoint.sh"]

7
entrypoint.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
cp -rf /codefiles/* /app/
cd /app
dotnet ./Oqtane.Server.dll