From 9226bf2799b7c85a0c85e42c537cc53de9eabead Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Tue, 15 Oct 2019 11:39:34 +0200 Subject: [PATCH] Docker tweaks --- client/Dockerfile | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/client/Dockerfile b/client/Dockerfile index d101e33..a73b638 100644 --- a/client/Dockerfile +++ b/client/Dockerfile @@ -1,20 +1,23 @@ FROM node:11-alpine LABEL maintainer="Ocean Protocol " -RUN apk add --no-cache --update\ - bash\ - g++\ - gcc\ - git\ - gettext\ - make\ - python +RUN apk add --no-cache --update \ + bash \ + g++ \ + gcc \ + git \ + gettext \ + make \ + python \ + && rm -rf /var/cache/apk/* + +COPY package*.json /app/frontend/ +WORKDIR /app/frontend +RUN npm install -g npm serve \ + && npm install \ + && npm cache clean --force COPY . /app/frontend -WORKDIR /app/frontend - -RUN npm install -g npm serve -RUN npm install RUN npm run build # Default ENV values