Dockerfile 726 B

123456789101112131415161718192021222324
  1. FROM ubuntu:14.04
  2. MAINTAINER hej@c3pb.de
  3. RUN apt-get update && apt-get install -y \
  4. build-essential \
  5. git python wget gawk subversion p7zip-full unzip \
  6. faketime libfaketime libgmp-dev libmpfr-dev libmpc-dev \
  7. zlib1g-dev ncurses-dev
  8. RUN useradd -m build
  9. ENV HOME /home/build
  10. RUN sudo -Hu build git config --global user.name "docker-based build" ; sudo -Hu build git config --global user.email "build@paderborn.freifunk.net"
  11. RUN mkdir /code
  12. WORKDIR /code
  13. RUN chown -R build: /code
  14. 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
  15. VOLUME /code
  16. USER build
  17. CMD ["/bin/bash", "docker-build.sh"]