You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.3 KiB

  1. #
  2. # Dockerfile for building MinGW port
  3. #
  4. # This file is part of the shadowsocks-libev.
  5. #
  6. # shadowsocks-libev is free software; you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation; either version 3 of the License, or
  9. # (at your option) any later version.
  10. #
  11. # shadowsocks-libev is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. # GNU General Public License for more details.
  15. #
  16. # You should have received a copy of the GNU General Public License
  17. # along with shadowsocks-libev; see the file COPYING. If not, see
  18. # <http://www.gnu.org/licenses/>.
  19. #
  20. FROM debian:testing
  21. ARG REPO=shadowsocks
  22. ARG REV=master
  23. ADD docker/mingw/prepare.sh /
  24. RUN \
  25. /bin/bash -c "source /prepare.sh && dk_prepare" && \
  26. apt-get clean && \
  27. rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /build
  28. RUN /bin/bash -c "source /prepare.sh && dk_download"
  29. ADD docker/mingw/deps.sh /
  30. RUN /bin/bash -c "source /deps.sh && dk_deps"
  31. ADD docker/mingw/build.sh /
  32. ARG REBUILD=0
  33. ADD . /build/src/proj
  34. RUN /bin/bash -c "source /build.sh && dk_build"
  35. RUN /bin/bash -c "source /build.sh && dk_package"