mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2025-05-29 05:55:21 -04:00
Update the dockerfile
This commit is contained in:
parent
913255f04f
commit
a31175b2e8
1 changed files with 7 additions and 5 deletions
|
@ -7,14 +7,16 @@ COPY Directory.Build.props ./
|
|||
COPY DiscordChatExporter.Core ./DiscordChatExporter.Core
|
||||
COPY DiscordChatExporter.Cli ./DiscordChatExporter.Cli
|
||||
|
||||
RUN dotnet publish DiscordChatExporter.Cli -c Release -o ./publish
|
||||
RUN dotnet publish DiscordChatExporter.Cli --configuration Release --output ./publish
|
||||
|
||||
# Run
|
||||
FROM mcr.microsoft.com/dotnet/runtime:6.0 AS run
|
||||
|
||||
COPY --from=build ./publish /opt/dce
|
||||
|
||||
RUN useradd dce
|
||||
USER dce
|
||||
WORKDIR /out
|
||||
ENTRYPOINT ["dotnet", "/opt/dce/DiscordChatExporter.Cli.dll"]
|
||||
|
||||
COPY --from=build ./publish ./
|
||||
|
||||
WORKDIR ./out
|
||||
|
||||
ENTRYPOINT ["dotnet", "../DiscordChatExporter.Cli.dll"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue