mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-02-14 15:53:30 -07:00
Clean up dockerfile
This commit is contained in:
parent
5846129cc6
commit
d9c35f4405
|
|
@ -42,11 +42,13 @@ ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false
|
||||||
ENV LC_ALL=en_US.UTF-8
|
ENV LC_ALL=en_US.UTF-8
|
||||||
ENV LANG=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
|
||||||
|
# https://github.com/Tyrrrz/DiscordChatExporter/issues/851
|
||||||
|
USER $APP_UID
|
||||||
|
|
||||||
# This directory is exposed to the user for mounting purposes, so it's important that it always
|
# This directory is exposed to the user for mounting purposes, so it's important that it always
|
||||||
# stays the same for backwards compatibility.
|
# stays the same for backwards compatibility.
|
||||||
WORKDIR /out
|
WORKDIR /out
|
||||||
|
|
||||||
COPY --from=build /tmp/dce/DiscordChatExporter.Cli/bin/publish /opt/app
|
COPY --from=build /tmp/app/DiscordChatExporter.Cli/bin/publish /opt/app
|
||||||
|
|
||||||
USER $APP_UID
|
|
||||||
ENTRYPOINT ["/opt/app/DiscordChatExporter.Cli"]
|
ENTRYPOINT ["/opt/app/DiscordChatExporter.Cli"]
|
||||||
Loading…
Reference in a new issue