Dockerfile
author Edouard Tisserant <edouard.tisserant@gmail.com>
Tue, 05 Dec 2017 00:08:10 +0100
changeset 22 07ad3ba42d39
child 28 950f79385de7
permissions -rw-r--r--
Experimental docker based installer build, + update of mingw binaries - builds, untested
# Builds Beremiz windows installer

# usage :
#   docker build --build-arg UID=$(id -u) --build-arg GID=$(id -g) -t beremiz_builder .
#   docker run -v ~/src:/home/devel/src -v ~/build/:/home/devel/build --rm beremiz_builder

FROM ubuntu:xenial

ENV TERM xterm-256color

COPY provision_xenial64.sh .

RUN ./provision_xenial64.sh

ARG UNAME=devel
ENV UNAME ${UNAME}
ARG UID=1000
ARG GID=1000
RUN groupadd -g $GID $UNAME
RUN useradd -m -u $UID -g $GID -s /bin/bash $UNAME
USER $UNAME

RUN mkdir /home/$UNAME/build /home/$UNAME/src
COPY . /home/$UNAME/src/beremiz_public_dist/

CMD xvfb-run make -C /home/$UNAME/build -f /home/$UNAME/src/beremiz_public_dist/Makefile