Public | Automated Build

Last pushed: a year ago
Short Description
Swagger UI Docker image using npm http-server, ready for extension.
Full Description

Dockerfile for swagger-ui

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


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


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/

Docker Pull Command
Source Repository

Comments (0)