Dockerfile 758 B

123456789101112131415161718192021222324252627
  1. FROM ubuntu:focal
  2. ENV TZ=Etc/UTC
  3. ENV TERM=xterm
  4. ENV APPIMAGE_EXTRACT_AND_RUN=1
  5. ARG DEBIAN_FRONTEND=noninteractive
  6. ARG NPCAP_VERSION=1.13
  7. RUN apt-get update
  8. RUN apt-get install -y build-essential pkg-config git zip wget file
  9. RUN apt-get install -y g++-mingw-w64-i686
  10. RUN apt-get install -y libpcap-dev libnl-3-dev libnl-route-3-dev
  11. RUN mkdir -p /usr/src
  12. WORKDIR /usr/src
  13. ADD "https://api.github.com/repos/jclehner/nmrpflash/commits?per_page=1" latest_commit
  14. RUN git clone https://github.com/jclehner/nmrpflash
  15. WORKDIR /usr/src/nmrpflash
  16. RUN wget -O npcap-sdk.zip https://npcap.com/dist/npcap-sdk-${NPCAP_VERSION}.zip
  17. RUN unzip npcap-sdk.zip -d Npcap
  18. RUN make release/linux-appimage
  19. RUN make clean
  20. RUN make MINGW=i686-w64-mingw32- release release/win32