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.

24 lines
564 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.0"
  4. ENV FOLDER "swagger-ui-2.2.0"
  5. ENV API_URL "http://petstore.swagger.io/v2/swagger.json"
  6. ENV API_KEY "**None**"
  7. ENV SWAGGER_JSON "/app/swagger.json"
  8. ENV PORT 80
  9. WORKDIR /app
  10. RUN apk update && apk add openssl
  11. RUN wget -qO- https://github.com/swagger-api/swagger-ui/archive/$VERSION.tar.gz | tar xvz
  12. RUN cp -r $FOLDER/dist/* . && rm -rf $FOLDER
  13. RUN npm install -g http-server
  14. RUN apk del openssl
  15. ADD run.sh run.sh
  16. # webserver port
  17. EXPOSE 80
  18. CMD ["sh", "run.sh"]