From 22634b8aaadc008653d4ea3e04ff80e45f58917c Mon Sep 17 00:00:00 2001 From: EvgenyOrekhov Date: Fri, 25 Nov 2016 18:32:25 +0300 Subject: [PATCH] Update swagger-ui/Dockerfile - Replace `mhart/alpine-node` with the official `node:alpine` image - Replace `apk update && apk add` with the new `apk add --no-cache` command which updates the index and removes it after the installation --- swagger-ui/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/swagger-ui/Dockerfile b/swagger-ui/Dockerfile index ca9a3ff..ccbb445 100644 --- a/swagger-ui/Dockerfile +++ b/swagger-ui/Dockerfile @@ -1,4 +1,4 @@ -FROM mhart/alpine-node +FROM node:alpine MAINTAINER Johannes Schickling "schickling.j@gmail.com" ENV VERSION "v2.2.6" @@ -15,7 +15,7 @@ ENV PORT 80 WORKDIR /app -RUN apk update && apk add openssl +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