HUB
Sign inSign up
swagger-ui logo

npalm/swagger-ui

By npalm

•Updated over 10 years ago

Swagger UI Docker image using npm http-server, ready for extension.

Image
0

1.4K

npalm/swagger-ui repository overview

⁠Dockerfile for swagger-ui

A dockerfile to run swagger-ui easily in a docker container

⁠Run

Run the swagger-ui in a container with port 80 exposed.

docker run -p 80:8080 --name swagger-ui npalm/swagger-ui

You can also pass extra option to the npm http-server running in the container.

docker run -p 80:8080 --name swagger-ui npalm/swagger-ui --cors

⁠Extend

You can extend the container for exammple by adding your own swagger yaml or json. In that case simply add the data somewhere in /swagger-ui/

Tag summary
Recent tags
Content type
Image
Digest
Size
245.3 MB
Last updated
over 10 years ago
docker pull npalm/swagger-ui:latest