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.

30 lines
743 B

9 years ago
9 years ago
9 years ago
9 years ago
  1. FROM node:alpine
  2. LABEL maintainer="Johannes Schickling <schickling.j@gmail.com>"
  3. ENV VERSION "v2.2.10"
  4. ENV FOLDER "swagger-ui-2.2.10"
  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 add --no-cache openssl \
  16. && wget -qO- https://github.com/swagger-api/swagger-ui/archive/$VERSION.tar.gz | tar xvz \
  17. && cp -r $FOLDER/dist/* . \
  18. && rm -rf $FOLDER \
  19. && npm install -g http-server \
  20. && apk del openssl
  21. ADD run.sh run.sh
  22. # webserver port
  23. EXPOSE 80
  24. CMD ["sh", "run.sh"]