mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2025-06-04 08:29:45 -04:00
Modify dockerfile to use non-root user (#952)
This commit is contained in:
parent
873d055191
commit
913255f04f
1 changed files with 5 additions and 3 deletions
|
@ -12,7 +12,9 @@ RUN dotnet publish DiscordChatExporter.Cli -c Release -o ./publish
|
||||||
# Run
|
# Run
|
||||||
FROM mcr.microsoft.com/dotnet/runtime:6.0 AS run
|
FROM mcr.microsoft.com/dotnet/runtime:6.0 AS run
|
||||||
|
|
||||||
COPY --from=build ./publish ./
|
COPY --from=build ./publish /opt/dce
|
||||||
|
|
||||||
WORKDIR ./out
|
RUN useradd dce
|
||||||
ENTRYPOINT ["dotnet", "/DiscordChatExporter.Cli.dll"]
|
USER dce
|
||||||
|
WORKDIR /out
|
||||||
|
ENTRYPOINT ["dotnet", "/opt/dce/DiscordChatExporter.Cli.dll"]
|
Loading…
Add table
Add a link
Reference in a new issue