Dockerfile
changeset 22 07ad3ba42d39
child 28 950f79385de7
equal deleted inserted replaced
21:5c0a6affeafa 22:07ad3ba42d39
       
     1 # Builds Beremiz windows installer
       
     2 
       
     3 # usage :
       
     4 #   docker build --build-arg UID=$(id -u) --build-arg GID=$(id -g) -t beremiz_builder .
       
     5 #   docker run -v ~/src:/home/devel/src -v ~/build/:/home/devel/build --rm beremiz_builder
       
     6 
       
     7 FROM ubuntu:xenial
       
     8 
       
     9 ENV TERM xterm-256color
       
    10 
       
    11 COPY provision_xenial64.sh .
       
    12 
       
    13 RUN ./provision_xenial64.sh
       
    14 
       
    15 ARG UNAME=devel
       
    16 ENV UNAME ${UNAME}
       
    17 ARG UID=1000
       
    18 ARG GID=1000
       
    19 RUN groupadd -g $GID $UNAME
       
    20 RUN useradd -m -u $UID -g $GID -s /bin/bash $UNAME
       
    21 USER $UNAME
       
    22 
       
    23 RUN mkdir /home/$UNAME/build /home/$UNAME/src
       
    24 COPY . /home/$UNAME/src/beremiz_public_dist/
       
    25 
       
    26 CMD xvfb-run make -C /home/$UNAME/build -f /home/$UNAME/src/beremiz_public_dist/Makefile
       
    27