mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-01-29 06:10:54 +00:00
Modify dockerfile to use non-root user (#952)
This commit is contained in:
@@ -12,7 +12,9 @@ RUN dotnet publish DiscordChatExporter.Cli -c Release -o ./publish
|
||||
# Run
|
||||
FROM mcr.microsoft.com/dotnet/runtime:6.0 AS run
|
||||
|
||||
COPY --from=build ./publish ./
|
||||
COPY --from=build ./publish /opt/dce
|
||||
|
||||
WORKDIR ./out
|
||||
ENTRYPOINT ["dotnet", "/DiscordChatExporter.Cli.dll"]
|
||||
RUN useradd dce
|
||||
USER dce
|
||||
WORKDIR /out
|
||||
ENTRYPOINT ["dotnet", "/opt/dce/DiscordChatExporter.Cli.dll"]
|
||||
Reference in New Issue
Block a user