FROM alpine:3.4 MAINTAINER Psiphon Inc. LABEL Description="Alpine Linux based Psiphon Tunnel-Core Server" Vendor="Psiphon Inc." Version="1.0" RUN apk add --update \ bash \ ca-certificates \ && rm -rf /var/cache/apk/* RUN mkdir -p /opt/psiphon ADD ["psiphond", "/opt/psiphon/psiphond/"] # All configuration files, Server databases, GeoIP databases, etc. # should be made available via the `/opt/psiphon/config` volume VOLUME ["/opt/psiphon/psiphond/config", "/opt/psiphon/psiphond/data", "/var/log/psiphond", "/usr/local/share/GeoIP"] EXPOSE 3000 3001 3002 3003 3004 3005 3006 WORKDIR /opt/psiphon/psiphond/config ENTRYPOINT ["/opt/psiphon/psiphond/psiphond"] CMD ["run"]