Dockerfile
author Edouard Tisserant <edouard.tisserant@gmail.com>
Sat, 04 Sep 2021 01:35:11 +0200
changeset 37 fd09116d3537
parent 32 bec145483ea8
child 41 77b38c4d0d7f
child 44 c460ec8c65e9
permissions -rw-r--r--
New windows installer cross build, using patched pacman to get MSYS2's packages and PIP over Wine to get PyPI packages. Work in progress.
# Dockerfile to setup beremiz_public_dist build container

FROM ubuntu:focal

ENV TERM xterm-256color

COPY provision_focal64.sh .

RUN ./provision_focal64.sh

ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8

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

# easy to remember 'build' alias to invoke main makefile
ARG OWNDIRBASENAME=beremiz_public_dist
ENV OWNDIRBASENAME ${OWNDIRBASENAME}
RUN echo "alias build='make -C /home/"$UNAME"/build -f /home/devel/src/"$OWNDIRBASENAME"/Makefile'">/home/$UNAME/.bash_aliases