Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ RUN MONO_VERSION=5.4.1.6 && \
rm -rf /tmp/src /tmp/NuGetScratch ~/.nuget ~/.config ~/.local && \
apt-get purge -y autoconf libtool make automake && \
apt-get clean

RUN apt-get update \
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nojaf thank you for the contribution. Is it necessary to add this package or is it sufficient to just enable the C.UTF-8 locale with this directive?

ENV LANG C.UTF-8

From the Debian base image:

Given that it is a faithful "minbase" install of Debian, this image only includes the C, C.UTF-8, and POSIX locales by default. For most uses requiring a UTF-8 locale, C.UTF-8 is likely sufficient (-e LANG=C.UTF-8 or ENV LANG C.UTF-8).

I would try this myself, but I'm not sure how to reproduce the issue.

&& apt-get install -y locales \
&& sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen \
&& locale-gen

WORKDIR /root
ENV FrameworkPathOverride /usr/lib/mono/4.5/
CMD ["fsharpi"]