Sign inSign up

mattisthegreatest/nupkgd

By mattisthegreatest

Updated 15 days ago

Image
0

169

mattisthegreatest/nupkgd repository overview

nupkgd

Docker Image Size Docker Image Version License

nupkgd is a local NuGet server for quickly serving packages from one or more folders. This server is not much different from adding a local folder as a NuGet source, but has the added ability to be used in a Dockerfile.

To start the server:

docker run -p 5555:5555 -v "$PWD:/etc/" mattisthegreatest/nupkgd:latest start --recursive

you can then add the nuget source with:

dotnet nuget add source http://localhost:5555/v3/index.json --name nupkgd --allow-insecure-connections

Note

`--allow-insecure-connections` is required for an `http` source

or you can use a nuget.config file:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <add key="nupkgd" value="http://localhost:5555/v3/index.json" protocolVersion="3" allowInsecureConnections="true" />
  </packageSources>
</configuration>

Browsing packages

Open http://localhost:5555/ in a browser for a plain HTML listing of every package on the feed, with its description, authors, tags and a download link for each version.

If you add or remove packages while the server is running and the file watcher misses it, POST /rescan re-reads the directory from scratch:

curl -X POST http://localhost:5555/rescan

License

nupkgd is available under either of the following licenses:

Tag summary

Content type

Image

Digest

sha256:143cd8b03

Size

1.3 MB

Last updated

15 days ago

docker pull mattisthegreatest/nupkgd