rabbah commented on a change in pull request #3063: use alpine linux for base 
image
URL: 
https://github.com/apache/incubator-openwhisk/pull/3063#discussion_r155039558
 
 

 ##########
 File path: core/controller/Dockerfile
 ##########
 @@ -1,13 +1,11 @@
 FROM scala
 
-ENV DEBIAN_FRONTEND noninteractive
-
 # Install swagger-ui
-RUN wget --no-verbose 
https://github.com/swagger-api/swagger-ui/archive/v2.1.4.tar.gz && \
+RUN curl -sSL -o swagger-ui-v2.1.4.tar.gz --no-verbose 
https://github.com/swagger-api/swagger-ui/archive/v2.1.4.tar.gz && \
     mkdir swagger-ui && \
-    tar zxf v2.1.4.tar.gz -C /swagger-ui --strip-components=2 
swagger-ui-2.1.4/dist && \
-    rm v2.1.4.tar.gz && \
-    perl -pi -w -e  
's{http://petstore.swagger.io/v2/swagger.json}{/api/v1/api-docs}g;' 
/swagger-ui/index.html
+    tar zxf swagger-ui-v2.1.4.tar.gz -C /swagger-ui --strip-components=2 
swagger-ui-2.1.4/dist && \
+    rm swagger-ui-v2.1.4.tar.gz && \
+    sed -i s#http://petstore.swagger.io/v2/swagger.json#/api/v1/api-docs#g 
/swagger-ui/index.html
 
 Review comment:
   i notice this is also in another pr #3064?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to