Dockerfile
author Edouard Tisserant <edouard.tisserant@gmail.com>
Fri, 20 May 2022 08:04:52 +0200
changeset 52 3b23cd88a197
parent 47 be6d0d610f84
child 54 ef2720b6f78e
permissions -rw-r--r--
Rename CanFestival-3 repo into canfestival. CamelCase and '-' in repo name are silly.
# 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

# easy to remember 'build' alias to invoke main makefile
ARG OWNDIRBASENAME=beremiz_public_dist
ENV OWNDIRBASENAME ${OWNDIRBASENAME}
RUN echo -e '#!/bin/bash\nmake -f /home/'$UNAME'/src/'$OWNDIRBASENAME'/Makefile $*' > /usr/local/bin/build
RUN chmod +x /usr/local/bin/build

USER $UNAME

RUN mkdir /home/$UNAME/build /home/$UNAME/src