Browse Source
Merge pull request #96 from neclimdul/smaller-swagger-image
Use one RUN to optimize layering
pull/100/head
Johannes Schickling
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
5 deletions
-
swagger-ui/Dockerfile
|
|
@ -15,11 +15,12 @@ ENV PORT 80 |
|
|
|
|
|
|
|
WORKDIR /app |
|
|
|
|
|
|
|
RUN apk add --no-cache openssl |
|
|
|
RUN wget -qO- https://github.com/swagger-api/swagger-ui/archive/$VERSION.tar.gz | tar xvz |
|
|
|
RUN cp -r $FOLDER/dist/* . && rm -rf $FOLDER |
|
|
|
RUN npm install -g http-server |
|
|
|
RUN apk del openssl |
|
|
|
RUN apk add --no-cache openssl \ |
|
|
|
&& wget -qO- https://github.com/swagger-api/swagger-ui/archive/$VERSION.tar.gz | tar xvz \ |
|
|
|
&& cp -r $FOLDER/dist/* . \ |
|
|
|
&& rm -rf $FOLDER \ |
|
|
|
&& npm install -g http-server \ |
|
|
|
&& apk del openssl |
|
|
|
|
|
|
|
ADD run.sh run.sh |
|
|
|
|
|
|
|