You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
726 B

9 years ago
9 years ago
9 years ago
  1. FROM mhart/alpine-node
  2. MAINTAINER Johannes Schickling "schickling.j@gmail.com"
  3. ENV VERSION "v2.2.6"
  4. ENV FOLDER "swagger-ui-2.2.6"
  5. ENV API_URL "http://petstore.swagger.io/v2/swagger.json"
  6. ENV API_KEY "**None**"
  7. ENV OAUTH_CLIENT_ID "**None**"
  8. ENV OAUTH_CLIENT_SECRET "**None**"
  9. ENV OAUTH_REALM "**None**"
  10. ENV OAUTH_APP_NAME "**None**"
  11. ENV OAUTH_ADDITIONAL_PARAMS "**None**"
  12. ENV SWAGGER_JSON "/app/swagger.json"
  13. ENV PORT 80
  14. WORKDIR /app
  15. RUN apk update && apk add openssl
  16. RUN wget -qO- https://github.com/swagger-api/swagger-ui/archive/$VERSION.tar.gz | tar xvz
  17. RUN cp -r $FOLDER/dist/* . && rm -rf $FOLDER
  18. RUN npm install -g http-server
  19. RUN apk del openssl
  20. ADD run.sh run.sh
  21. # webserver port
  22. EXPOSE 80
  23. CMD ["sh", "run.sh"]