Change Docker base image to photon
- Bundle uvloop along with wormhole for higher performance.
- Bump version to 2.0.1.
3 files changed, 18 insertions(+), 6 deletions(-)

M docker/Dockerfile
M docker/wormhole-forever.sh
M wormhole/proxy.py
M docker/Dockerfile +16 -4
@@ 1,11 1,23 @@ 
 # wormhole proxy
 
-FROM bashell/alpine-bash:latest
+FROM photon:latest
 MAINTAINER Chaiwat Suttipongsakul "cwt@bashell.com"
 
-RUN apk update && apk upgrade && apk add python3 && \
-    cd / && pyvenv wormhole && /wormhole/bin/pip install \
-    https://bitbucket.org/bashell-com/wormhole/get/default.tar.gz?`date | md5sum |cut -b -32`
+RUN tdnf update -y && tdnf clean all
+RUN tdnf install -y python3 python3-libs python3-tools python3-devel && tdnf clean all
+RUN tdnf install -y autoconf automake binutils flex gawk gcc gdbm glibc-devel \
+        libgcc-devel libgomp libgomp-devel libstdc++-devel libtool \
+        linux-api-headers m4 make mpc mpfr perl sed && tdnf clean all && \
+    pip3.5 install virtualenv && cd / && virtualenv wormhole && \
+    /wormhole/bin/pip install cython && \
+    /wormhole/bin/pip install uvloop && \
+    /wormhole/bin/pip install wormhole-proxy && \
+    tdnf remove -y autoconf automake binutils flex gawk gcc gdbm glibc-devel \
+        libgcc-devel libgomp libgomp-devel libstdc++-devel libtool \
+        linux-api-headers m4 make mpc mpfr perl sed && tdnf clean all && \
+    rm -rf /root/.cache && \
+    for cache in `find /wormhole -iname '__pycache__'`; do rm -rf $cache; done
+
 ADD wormhole-forever.sh /wormhole/bin/
 
 EXPOSE     8800/tcp

          
M docker/wormhole-forever.sh +1 -1
@@ 1,5 1,5 @@ 
 #!/bin/bash
-
+ulimit -n 8192
 # Showing help or license then exit normally.
 if [ "$1" = "-h" ] || [ "$1" = "--help" ] \
 || [ "$1" = "-l" ] || [ "$1" = "--license" ]; then

          
M wormhole/proxy.py +1 -1
@@ 1,6 1,6 @@ 
 #!/usr/bin/env python3
 
-VERSION = "v2.0"
+VERSION = "v2.0.1"
 
 import sys
 if sys.version_info < (3, 5):