title: How to run swagger-ui with local code changes AND my own swagger.json?
body: <p>The Readme on <a href="https://github.com/swagger-api/swagger-ui" rel="noreferrer">https://github.com/swagger-api/swagger-ui</a> specifies that Swagger-UI can be run with your own file like this</p>
  
  <pre><code>docker run -p 80:8080 -e SWAGGER_JSON=/foo/swagger.json -v /bar:/foo swaggerapi/swagger-ui
  </code></pre>
  
  <p>which works I if I translate it to</p>
  
  <pre><code>docker build . -t swagger-ui-local &amp;&amp; \
    docker run -p 80:8080 -e SWAGGER_JSON=/foo/my-file.json -v $PWD:/foo swagger-ui-local
  </code></pre>
  
  <p>This, however, ignores my local changes.</p>
  
  <p>I can run my local changes with</p>
  
  <pre><code>npm run dev
  </code></pre>
  
  <p>but I can't figure out how to get this dev server to run anything else than the Petstore example.</p>
  
  <p>Can anyone help me combine the two, so I can run swagger-ui with local code changes AND my own swagger.json?</p>