The server for hosting pub packages on pub.dev is implemented using AppEngine Custom Runtimes with Flexible environment (see package:appengine for more information about Dart support for AppEngine).
If you are looking only for a simple self-hosted site to publish internal package, see package:pub_server, which has an example for running one using the local filesystem as storage.