+# Copyright (c) 2019 AT&T Intellectual Property. #\r
+# #\r
+# Licensed under the Apache License, Version 2.0 (the "License"); #\r
+# you may not use this file except in compliance with the License. #\r
+# You may obtain a copy of the License at #\r
+# #\r
+# http://www.apache.org/licenses/LICENSE-2.0 #\r
+# #\r
+# Unless required by applicable law or agreed to in writing, software #\r
+# distributed under the License is distributed on an "AS IS" BASIS, #\r
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #\r
+# See the License for the specific language governing permissions and #\r
+# limitations under the License. #\r
+################################################################################\r
FROM node:8.16-alpine\r
\r
ENV ENV=development\r
ENV NAMESPACE=namespace\r
ENV APP_NAME=otf-frontend\r
ENV APP_VERSION=1.0\r
-ENV OTF_URL=https://loaclhost:32524/\r
+ENV OTF_URL=https://localhost:32524/\r
ENV OTF_EMAIL=email@email.com\r
ENV AUTHENTICATION_SECRET=/ytoYB+iD5HUuDLmeqStcoUPwqw=\r
ENV SERVICEAPI_URL=https://localhost:32303/otf/api/\r
ENV CAMUNDAAPI_AAFPASSWORD=password\r
ENV MONGO_BASEURL=localhost:27017/\r
ENV MONGO_DBOTF=otf\r
-ENV MONGO_REPLICASET=mongoOTF\r
+ENV MONGO_REPLICASET=rs0\r
ENV MONGO_USERNAME=username\r
ENV MONGO_PASSWORD=password\r
\r
+RUN npm config set unsafe-perm true\r
+RUN npm cache clean --force\r
+RUN npm config set registry https://registry.npmjs.org/\r
+RUN node -v\r
+\r
COPY . /home/node\r
WORKDIR /home/node\r
\r
RUN mkdir -p /otf/logs\r
\r
+#RUN npm install webpack\r
+#RUN npm install webpack webpack-dev-server \r
+RUN npm i -g webpack\r
+RUN npm i -g webpack-dev-server\r
+RUN npm i -g --unsafe-perm @angular/cli@6.2.9 \r
+RUN npm install --save-dev @angular-devkit/build-angular\r
RUN npm install --unsafe-perm\r
RUN npm run-script build\r
\r