Commit bd0e0491 authored by Kristof Korwisi's avatar Kristof Korwisi
Browse files

Minor changes in Dockerfile

parent 9aa86fbf
......@@ -6,12 +6,24 @@ RUN apt-get update && apt-get install -y \
unzip \
zip
#set the encoding on UTF-8, so the parser works correctly, german language is also added for umlaute
#source of fix: https://blog.mkowalski.net/2016/05/16/solving-locale-issues-with-docker-containers/
RUN apt-get install --reinstall -y locales && \
sed -i 's/# de_DE.UTF-8 UTF-8/de_DE.UTF-8 UTF-8/' /etc/locale.gen && \
locale-gen de_DE.UTF-8
ENV LANG de_DE.UTF-8
ENV LANGUAGE de_DE
ENV LC_ALL de_DE.UTF-8
RUN dpkg-reconfigure --frontend noninteractive locales
RUN wget -qO- https://get.haskellstack.org/ | sh
WORKDIR /decker
COPY . /decker
RUN make install
RUN ldd /root/.local/bin/decker | grep "=> /" | awk '{print $3}' | xargs -I '{}' cp -v '{}' /root/.local/bin
# Image that will execute decker
FROM ubuntu:artful
......@@ -25,7 +37,8 @@ RUN apt-get update && apt-get install -y \
ENV PATH="/root/.local/bin:${PATH}"
COPY --from=0 /root/.local /root/.local
COPY --from=0 /root/.stack /root/.stack
COPY --from=0 /root/.stack/snapshots/x86_64-linux-nopie/lts-10.10/8.2.2/share/x86_64-linux-ghc-8.2.2/pandoc-citeproc-0.12.2.5/locales/locales-en-US.xml /root/.stack/snapshots/x86_64-linux-nopie/lts-10.10/8.2.2/share/x86_64-linux-ghc-8.2.2/pandoc-citeproc-0.12.2.5/locales/locales-en-US.xml
#COPY --from=0 /root/.stack /root/.stack
#set the encoding on UTF-8, so the parser works correctly, german language is also added for umlaute
#source of fix: https://blog.mkowalski.net/2016/05/16/solving-locale-issues-with-docker-containers/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment