edouard@37: # Dockerfile to setup beremiz_public_dist build container edouard@22: edouard@37: FROM ubuntu:focal edouard@22: edouard@22: ENV TERM xterm-256color edouard@22: edouard@37: COPY provision_focal64.sh . edouard@22: edouard@37: RUN ./provision_focal64.sh edouard@37: edouard@37: ENV LANG en_US.UTF-8 edouard@37: ENV LANGUAGE en_US:en edouard@37: ENV LC_ALL en_US.UTF-8 edouard@22: edouard@22: ARG UNAME=devel edouard@22: ENV UNAME ${UNAME} edouard@22: ARG UID=1000 edouard@22: ARG GID=1000 edouard@22: RUN groupadd -g $GID $UNAME edouard@22: RUN useradd -m -u $UID -g $GID -s /bin/bash $UNAME edouard@41: edouard@41: # easy to remember 'build' alias to invoke main makefile edouard@41: ARG OWNDIRBASENAME=beremiz_public_dist edouard@41: ENV OWNDIRBASENAME ${OWNDIRBASENAME} edouard@41: RUN echo -e '#!/bin/bash\nmake -f /home/devel/src/'$OWNDIRBASENAME'/Makefile $*' > /usr/local/bin/build edouard@41: RUN chmod +x /usr/local/bin/build edouard@41: edouard@22: USER $UNAME edouard@22: edouard@22: RUN mkdir /home/$UNAME/build /home/$UNAME/src edouard@22: