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.

48 lines
1.3 KiB

4 years ago
4 years ago
4 years ago
4 years ago
  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:stretch
  21. ARG REPO=shadowsocks
  22. ARG REV=master
  23. ADD docker/mingw/apt.sh /
  24. RUN \
  25. /bin/bash -c "source /apt.sh && dk_prepare" && \
  26. apt-get clean && \
  27. rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /build
  28. ADD docker/mingw/prepare.sh /
  29. RUN /bin/bash -c "source /prepare.sh && dk_download"
  30. ADD docker/mingw/deps.sh /
  31. RUN /bin/bash -c "source /deps.sh && dk_deps"
  32. ADD docker/mingw/build.sh /
  33. ARG REBUILD=0
  34. ADD . /build/src/proj
  35. RUN /bin/bash -c "source /build.sh && dk_build"
  36. RUN /bin/bash -c "source /build.sh && dk_package"