Dockerfile 802 B

1234567891011121314151617181920212223242526272829303132
  1. FROM ubuntu:jammy
  2. ENV TZ=Etc/UTC
  3. ENV TERM=xterm
  4. ENV APPIMAGE_EXTRACT_AND_RUN=1
  5. ARG DEBIAN_FRONTEND=noninteractive
  6. RUN apt-get update
  7. RUN apt-get install -y build-essential pkg-config git zip wget file
  8. RUN apt-get install -y g++-mingw-w64-i686
  9. RUN apt-get install -y imagemagick
  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. ARG NPCAP_SDK
  17. RUN wget -q -O npcap-sdk.zip https://npcap.com/dist/npcap-sdk-${NPCAP_SDK}.zip
  18. RUN unzip npcap-sdk.zip -d Npcap
  19. ARG CACHEBUST=1
  20. RUN make clean
  21. RUN make release/linux-appimage
  22. RUN make MINGW=i686-w64-mingw32- release release/win32