FROM debian:stable-slim

# locales
RUN apt-get update && apt-get install -y locales && rm -rf /var/lib/apt/lists/* \
    && localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
ENV LANG=en_US.utf8

# configs
COPY .bashrc /root/.bashrc
COPY inputrc /etc/inputrc

# base soft
RUN apt-get update && apt-get install -y curl wget make git && rm -rf /var/cache/apt/archives/*

# mmwave SDK
WORKDIR /soft
RUN dpkg --add-architecture i386
RUN apt-get update && apt-get install -y build-essential mono-runtime libc6:i386 && rm -rf /var/cache/apt/archives/*
COPY mmwave_sdk_03_05_00_04-Linux-x86-Install.bin /soft/mmwave_sdk.bin
RUN /soft/mmwave_sdk.bin --prefix /soft/ti --mode unattended
RUN rm -f /soft/mmwave_sdk.bin
