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