Open tokidoki11 opened 3 months ago
nice I was wandering about the same thing. In fact, I was expecting that it could read it from an environment variable in the docker container.
i hope somebody make answer, how to load local file straightaway after start docker container
Description
I only run docker swagger v5 (alpha96) without building the react
in version 4 you can specify env variable to set the definition file location
docker run -d -p 80:8080 -v $(pwd):/tmp -e SWAGGER_FILE=/tmp/swagger.json swaggerapi/swagger-editor
Currently I think it only support default file definition by building react yourself via .env file
Describe the solution you'd like
allow SWAGGER_FILE env variable to setup default file on docker run
Describe alternatives you've considered
Additional context