Clean up dockerfile

pull/1160/head
Tyrrrz 8 months ago
parent 5846129cc6
commit d9c35f4405

@ -42,11 +42,13 @@ 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
# 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
# stays the same for backwards compatibility.
WORKDIR /out
COPY --from=build /tmp/dce/DiscordChatExporter.Cli/bin/publish /opt/app
USER $APP_UID
COPY --from=build /tmp/app/DiscordChatExporter.Cli/bin/publish /opt/app
ENTRYPOINT ["/opt/app/DiscordChatExporter.Cli"]
Loading…
Cancel
Save