mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2024-09-19 12:18:48 -04:00
Fix docker user permission issues by creating the user manually (#1183)
This commit is contained in:
parent
d4be307fb1
commit
777f92a3f1
1 changed files with 3 additions and 3 deletions
|
@ -46,10 +46,10 @@ ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false
|
|||
ENV LC_ALL=en_US.UTF-8
|
||||
ENV LANG=en_US.UTF-8
|
||||
|
||||
# Use a non-root user to ensure that the files shared with the host are accessible by the host user.
|
||||
# We can use the default user provided by the base image for this purpose.
|
||||
# Use a non-root user to ensure that the files shared with the host are accessible by the host user
|
||||
# https://github.com/Tyrrrz/DiscordChatExporter/issues/851
|
||||
USER app
|
||||
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.
|
||||
|
|
Loading…
Reference in a new issue