--- a/Dockerfile Thu May 19 18:08:47 2022 +0200
+++ b/Dockerfile Thu May 19 18:19:23 2022 +0200
@@ -18,11 +18,13 @@
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
+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