diff options
author | mbeierl <mark.beierl@dell.com> | 2018-06-25 13:18:47 -0400 |
---|---|---|
committer | Mark Beierl <mark.beierl@dell.com> | 2018-06-26 19:17:54 +0000 |
commit | ee433a719c22c38360649cfc7fb7c6047c9be84f (patch) | |
tree | c3bd1ace1003e43fbe42589c6aa720f2222e480a /docker/storperf-swaggerui/Dockerfile | |
parent | 8962423227e13f45ef9f7dfbf48ed4847d3f3865 (diff) |
Speed up Builds
Adding a new keyserver and ulimit to help speed up
builds.
Change-Id: If79ba1e533bfe2044606d98047abe9fa342aefb4
Signed-off-by: mbeierl <mark.beierl@dell.com>
(cherry picked from commit e71013c4cb73c8ccbd01782cbd814030f4008b9b)
Diffstat (limited to 'docker/storperf-swaggerui/Dockerfile')
-rw-r--r-- | docker/storperf-swaggerui/Dockerfile | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/docker/storperf-swaggerui/Dockerfile b/docker/storperf-swaggerui/Dockerfile index 14c9fe1..4e3a83f 100644 --- a/docker/storperf-swaggerui/Dockerfile +++ b/docker/storperf-swaggerui/Dockerfile @@ -16,6 +16,8 @@ ARG ARCH=x86_64 ARG ALPINE_VERSION=v3.6 FROM multiarch/alpine:$ARCH-$ALPINE_VERSION +RUN ulimit -n 1024 + # This is from https://github.com/nodejs/docker-node/blob/f547c4c7281027d5d90f4665815140126e1f70d5/8.2/alpine/Dockerfile ENV NPM_CONFIG_LOGLEVEL info @@ -46,6 +48,7 @@ RUN addgroup -g 1000 node \ C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8 \ 56730D5401028683275BD23C23EFEFE93C4CFFFE \ ; do \ + gpg --keyserver keyserver.ubuntu.com --recv-keys "$key" || \ gpg --keyserver pgp.mit.edu --recv-keys "$key" || \ gpg --keyserver keyserver.pgp.com --recv-keys "$key" || \ gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key" ; \ @@ -70,6 +73,7 @@ RUN apk add --no-cache --virtual .build-deps-yarn curl gnupg tar \ && for key in \ 6A010C5166006599AA17F08146C2130DFD2497F5 \ ; do \ + gpg --keyserver keyserver.ubuntu.com --recv-keys "$key" || \ gpg --keyserver pgp.mit.edu --recv-keys "$key" || \ gpg --keyserver keyserver.pgp.com --recv-keys "$key" || \ gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key" ; \ @@ -104,8 +108,8 @@ 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 apk add --no-cache openssl curl +RUN curl -SL https://github.com/swagger-api/swagger-ui/archive/$VERSION.tar.gz | tar xvz RUN cp -r $FOLDER/dist/* . && rm -rf $FOLDER RUN npm config set unsafe-perm true RUN npm install -g http-server |