|
@@ -8,8 +8,8 @@ RUN apt-get update && apt-get install -y \
|
|
|
zlib1g-dev ncurses-dev
|
|
|
|
|
|
RUN useradd -m build
|
|
|
-RUN sudo -Hu build git config --global user.name "docker-based build"
|
|
|
-RUN sudo -Hu build git config --global user.email "build@paderborn.freifunk.net"
|
|
|
+ENV HOME /home/build
|
|
|
+RUN sudo -Hu build git config --global user.name "docker-based build" ; sudo -Hu build git config --global user.email "build@paderborn.freifunk.net"
|
|
|
|
|
|
RUN mkdir /code
|
|
|
WORKDIR /code
|
|
@@ -18,8 +18,7 @@ RUN chown -R build: /code
|
|
|
RUN echo -en "#!/bin/sh\necho Start this container with "-v /path/to/firmware-repo:/code" to map your repo into it.\n" > /code/build.sh ; chmod +x /code/build.sh
|
|
|
|
|
|
VOLUME /code
|
|
|
-ENV HOME /user/build
|
|
|
USER build
|
|
|
|
|
|
-CMD ["/bin/bash", "build.sh"]
|
|
|
+CMD ["/bin/bash", "docker-build.sh"]
|
|
|
|