Add entrypoint, modify Dockerfile: Overwrite volume files
This commit is contained in:
parent
b3b39f583a
commit
7a9941fe66
@ -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
7
entrypoint.sh
Executable file
@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
cp -rf /codefiles/* /app/
|
||||
|
||||
cd /app
|
||||
|
||||
dotnet ./Oqtane.Server.dll
|
Loading…
x
Reference in New Issue
Block a user