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.

23 lines
552 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. WORKDIR /app
  9. RUN apk update && apk add openssl
  10. RUN wget -qO- https://github.com/swagger-api/swagger-ui/archive/$VERSION.tar.gz | tar xvz
  11. RUN cp -r $FOLDER/dist/* . && rm -rf $FOLDER
  12. RUN npm install -g http-server
  13. RUN apk del openssl
  14. ADD run.sh run.sh
  15. # webserver port
  16. EXPOSE 80
  17. CMD ["sh", "run.sh"]