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.

22 lines
515 B

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