Dockerfile 716 B

123456789101112131415161718192021222324
  1. FROM alpine:latest
  2. MAINTAINER Psiphon Inc. <info@psiphon.ca>
  3. LABEL Description="Alpine Linux based Psiphon Tunnel-Core Server" Vendor="Psiphon Inc." Version="1.0"
  4. RUN apk add --update \
  5. bash \
  6. ca-certificates \
  7. && rm -rf /var/cache/apk/*
  8. RUN mkdir -p /opt/psiphon
  9. ADD ["psiphond", "/opt/psiphon/psiphond/"]
  10. # All configuration files, Server databases, GeoIP databases, etc.
  11. # should be made available via the `/opt/psiphon/config` volume
  12. VOLUME ["/opt/psiphon/psiphond/config", "/opt/psiphon/psiphond/data", "/var/log/psiphond", "/usr/local/share/GeoIP"]
  13. EXPOSE 3000 3001 3002 3003 3004 3005 3006
  14. WORKDIR /opt/psiphon/psiphond/config
  15. ENTRYPOINT ["/opt/psiphon/psiphond/psiphond"]
  16. CMD ["run"]