FROM ubuntu:20.04
LABEL maintainer="s.mathimugan@baslerweb.com"
LABEL version="0.1"
LABEL description="This is custom Docker Image"

RUN apt-get update && apt-get install build-essential  locales-all joe vim -y
RUN apt-get install dialog apt-utils  usbutils -y


ARG USERNAME=dev

ARG PUID=1000

ARG PGID=1000

RUN groupadd -g ${PGID} ${USERNAME} \
            && useradd -u ${PUID} -g ${USERNAME} -d /home/${USERNAME} ${USERNAME} \
            && mkdir /home/${USERNAME} \
            && chown -R ${USERNAME}:${USERNAME} /home/${USERNAME}
            
                    
ENV DIR=/home/imcome
RUN echo $DIR
           
RUN mkdir -p ${DIR} && \
          chmod +r ${DIR}

COPY *.deb ${DIR}
          
VOLUME [${DIR}]

WORKDIR ${DIR}
RUN dpkg -i ${DIR}/pylon*.deb

CMD "/bin/bash"
