Add entrypoint, modify Dockerfile: Overwrite volume files
This commit is contained in:
@ -17,8 +17,11 @@ RUN dotnet publish "Oqtane.Server/Oqtane.Server.csproj" -c Release -o /source/pu
|
|||||||
# Deploy
|
# Deploy
|
||||||
FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS 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/
|
COPY entrypoint.sh .
|
||||||
ENTRYPOINT ["dotnet", "Oqtane.Server.dll"]
|
RUN chmod +x entrypoint.sh
|
||||||
|
|
||||||
|
ENTRYPOINT ["./entrypoint.sh"]
|
7
entrypoint.sh
Executable file
7
entrypoint.sh
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
cp -rf /codefiles/* /app/
|
||||||
|
|
||||||
|
cd /app
|
||||||
|
|
||||||
|
dotnet ./Oqtane.Server.dll
|
Reference in New Issue
Block a user