bug(chartjs/zonejs): dependency conflict while creating new container
Change-Id: I86db7b06a315581bc792a17a3ad81334e5d290d1
Signed-off-by: bravof <fbravo@whitestack.com>
diff --git a/docker/Dockerfile b/docker/Dockerfile
index f89dec2..c554f50 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -25,19 +25,21 @@
&& apt-get update && apt-get install -y nodejs \
&& apt-get install -y nginx
+RUN npm install -g yarn
+
# Preparing working environment.
RUN mkdir -p /usr/src/osm-angularapp
WORKDIR /usr/src/osm-angularapp
# Installing dependencies.
COPY ./package.json /usr/src/osm-angularapp/
-RUN npm install
+RUN yarn install
# Copy osm-angularapp source into image.
COPY ./ /usr/src/osm-angularapp
# Building app.
-RUN npm run build
+RUN yarn build
# Removing nginx default page.
RUN rm -rf /usr/share/nginx/html/*