mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2024-09-19 04:08:45 -04:00
Don't need to create a user in Docker anymore with .NET 8
This commit is contained in:
parent
73574ade48
commit
6a71c59b6d
1 changed files with 2 additions and 5 deletions
|
@ -42,14 +42,11 @@ ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false
|
|||
ENV LC_ALL=en_US.UTF-8
|
||||
ENV LANG=en_US.UTF-8
|
||||
|
||||
# Create a non-root user to run the app, so that the output files can be accessed by the host
|
||||
# https://github.com/Tyrrrz/DiscordChatExporter/issues/851
|
||||
RUN adduser --disabled-password --no-create-home dce
|
||||
USER dce
|
||||
|
||||
# This directory is exposed to the user for mounting purposes, so it's important that it always
|
||||
# stays the same for backwards compatibility.
|
||||
WORKDIR /out
|
||||
|
||||
COPY --from=build /tmp/dce/DiscordChatExporter.Cli/bin/publish /opt/dce
|
||||
|
||||
USER $APP_UID
|
||||
ENTRYPOINT ["/opt/dce/DiscordChatExporter.Cli"]
|
Loading…
Reference in a new issue